home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / T-Z / VideoStakGold.cpt / VideoStakGold / VideoStak ◊ Begin Here / background_2659.txt < prev    next >
Text File  |  1988-04-27  |  92KB  |  3,959 lines

  1. -- background: 2659 from stack: in
  2. -- bmap block id: 5614
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7.  
  8. ------------------------------------------
  9. -- BACKGROUND SCRIPTS CONSISTING OF     --
  10. -- USER-DEFINED COMMANDS (UCMD) & IDLER --
  11. ------------------------------------------
  12.  
  13. --------------------------
  14. -- USER-DEFINED COMMAND --
  15. --------------------------
  16.  
  17. On REHILITE tapeButtonNo
  18.  
  19.   -- PUTTING THE BTN NUMBER INTO A GLOBAL
  20.   -- WHERE OTHER COMMANDS CAN GET TO IT:
  21.   global hiTapeButton
  22.   put tapeButtonNo into hiTapeButton
  23.  
  24.   -- SET THE HILITES RIGHT EVEN AFTER A SCROLL:
  25.   repeat with i = 5 to 16
  26.     set hilite of bkgnd btn i to i = tapeButtonNo
  27.   end repeat
  28.  
  29. End REHILITE
  30.  
  31. -----------------
  32. -- MORE UCMD'S --
  33. -----------------
  34.  
  35. On HELPER theRes
  36.  
  37.   -- VIZ DISSOLVE TO SCREEN MASK:
  38.   set cursor to 4
  39.   lock screen
  40.   show fld "MaskScreen"
  41.   unlock screen with visual dissolve fast
  42.  
  43.   -- GET TV CURSOR & SHOW HELP PICT:
  44.   set cursor to 27902
  45.   dispPICT theRes,0,0,24,40
  46.   get the result  -- CATCHES ERRORS
  47.   set cursor to 4
  48.  
  49.   -- MASK SCREEN & VIZ DISSOLVE TO CONTENTS:
  50.   lock screen
  51.   hide fld "MaskScreen"
  52.   unlock screen with visual dissolve fast
  53.  
  54.   -- POST ERRORS IN MSG BOX:
  55.   if IT contains "ot" then put IT
  56.  
  57. End HELPER
  58.  
  59. -----------------
  60. -- MORE UCMD'S --
  61. -----------------
  62.  
  63. On FINDING theLine
  64.  
  65.   -- CHECK TO SEE IF WE'RE SHOOTIN' BLANKS:
  66.   if line theLine of field "Window" = empty then exit finDing
  67.  
  68.   -- DECLARE GLOBALS:
  69.   global findIt,hiButton,classmaster
  70.  
  71.   -- SETTING UP FOR THE FIRST & SECOND (VIA RETURNKEY) FIND:
  72.   put line theLine of field "Window" into findIt
  73.   if char 1 of findIt = "‚àÇ" then delete char 1 of findIt
  74.  
  75.   -- HERE WE GO A-FINDING:
  76.   set cursor to 4
  77.   lock screen
  78.  
  79.   -- FOR A TITLE SEARCH:
  80.   if hiButton = 30 then
  81.     if the selectedField = "bkgnd field 16" then go to next card  -- PREVENTS RE-FINDING!
  82.     find whole findIt in field "Title"
  83.     get the result
  84.     if IT ‚↠empty then
  85.       unlock screen with visual dissolve fast
  86.       answer "Couldn't find" && quote & findIT & quote
  87.       exit finDing
  88.     end if
  89.     unlock screen with visual dissolve fast
  90.     select the foundChunk
  91.     exit finDing
  92.   end if
  93.  
  94.   -- FOR A STAR SEARCH:
  95.   if hiButton = 31 then
  96.     if the selectedField = "bkgnd field 17" then go to next card  -- PREVENTS RE-FINDING!
  97.     find whole findIt in field "Star"
  98.     get the result
  99.     if IT ‚↠empty then
  100.       unlock screen with visual dissolve fast
  101.       answer "Couldn't find" && quote & findIT & quote
  102.       exit finDing
  103.     end if
  104.     unlock screen with visual dissolve fast
  105.     select the foundChunk
  106.     exit finDing
  107.   end if
  108.  
  109.   -- FOR A DIRECTOR SEARCH:
  110.   if hiButton = 32 then
  111.     if the selectedField = "bkgnd field 18" then go to next card  -- PREVENTS RE-FINDING!
  112.     find whole findIt in field "Director"
  113.     get the result
  114.     if IT ‚↠empty then  -- NOT FOUND!
  115.       unlock screen with visual dissolve fast
  116.       answer "Couldn't find" && quote & findIT & quote
  117.       exit finDing
  118.     end if
  119.     unlock screen with visual dissolve fast
  120.     select the foundChunk
  121.     exit finDing
  122.   end if
  123.  
  124.   -- FOR A CLASS SEARCH:
  125.   if hiButton = 33 then
  126.     if the selectedText contains "√õ " then
  127.       go to next card
  128.     end if
  129.     find whole "√õ " & findIt in fld findIt
  130.     -- THE FIELD NAME IS IN THE CLASS BEING FOUND
  131.     get the result
  132.     if IT ‚↠empty then  -- NOT FOUND!
  133.       unlock screen with visual dissolve fast
  134.       answer "Couldn't find" && quote & findIT & quote
  135.       exit finDing
  136.     end if
  137.     unlock screen with visual dissolve fast
  138.     select the foundChunk
  139.     exit finDing
  140.   end if
  141.  
  142.   -- JUST IN CASE AN INDEX WAS NOT SELECTED:
  143.   if hiButton = empty then
  144.     unlock screen
  145.     answer "Click an index tab first!"
  146.   end if
  147.  
  148. End FINDING
  149.  
  150. -----------------
  151. -- MORE UCMD'S --
  152. -----------------
  153.  
  154. On CLASSIT theNo
  155.  
  156.   -- CONDITION ONE WHERE THE CLASS IS AN "X" BOX:
  157.   if first char of bkgnd field theNo = "√õ" then
  158.     put "Œ©" into char 1 of bkgnd field theNo
  159.     exit classIt
  160.   end if
  161.  
  162.   -- CONDITION TWO WHERE THE CLASS IS A NON "X" BOX:
  163.   if first char of bkgnd field theNo = "Œ©" then
  164.     put "√õ" into char 1 of bkgnd field theNo
  165.   end if
  166.  
  167. End CLASSIT
  168.  
  169.  
  170.  
  171.  
  172.  
  173. -- part 11 (field)
  174. -- low flags: 01
  175. -- high flags: 0000
  176. -- rect: left=346 top=39 right=268 bottom=486
  177. -- title width / last selected line: 0
  178. -- icon id / first selected line: 0 / 0
  179. -- text alignment: 0
  180. -- font id: 2
  181. -- text size: 10
  182. -- style flags: 0
  183. -- line height: 19
  184. -- part name: Window
  185.  
  186.  
  187. -- part 34 (button)
  188. -- low flags: 00
  189. -- high flags: 2000
  190. -- rect: left=322 top=288 right=301 bottom=333
  191. -- title width / last selected line: 0
  192. -- icon id / first selected line: 0 / 0
  193. -- text alignment: 1
  194. -- font id: 0
  195. -- text size: 12
  196. -- style flags: 0
  197. -- line height: 16
  198. -- part name: Up
  199. ----- HyperTalk script -----
  200.  
  201. --------------------
  202. -- UP ARROW STUFF --
  203. --------------------
  204.  
  205. On MOUSESTILLDOWN
  206.  
  207.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  208.   if the optionKey is down and the commandKey is not down then
  209.     helper helpUpDown
  210.     exit mouseStillDown
  211.   end if
  212.  
  213.   global lineNo,master,hiTapeButton,getOutaHere
  214.   put 1 into getOutaHere -- DEACTIVATES MOUSEUP!
  215.  
  216.   -- IF YOU'RE ALREADY AT THE TOP, WHY BOTHER?
  217.   if first line of field "Window" = first line of master then exit mouseStillDown
  218.  
  219.   -- THIS'LL MOVE A SCREEN OF THE INDEX:
  220.   if the commandKey is down or the shiftKey is down then
  221.     if lineNo ‚⧠12 then put 13 into lineNo
  222.     subtract 12 from lineNo
  223.     lock screen
  224.     put line lineNo to lineNo + 11 of master into field "Window"
  225.     unlock screen with visual dissolve fast
  226.     exit mouseStillDown
  227.   end if
  228.  
  229.   -- UNDER ORDINARY CIRCUMSTANCE, SINGLE SCROLLING
  230.   subtract 1 from lineNo
  231.   put line lineNo to (lineNo  + 11) of master into field "Window"
  232.  
  233. End MOUSESTILLDOWN
  234.  
  235.  
  236. On MOUSEUP
  237.  
  238.   -- GET HELP IF OPTIONKEY IS DOWN:
  239.   if the optionKey is down and the commandKey is not down then
  240.     helper helpUpDown
  241.     exit mouseUp
  242.   end if
  243.  
  244.   global lineNo,master,hiTapeButton,getOutaHere
  245.  
  246.   -- IF MOUSESTILLDOWN WAS ACTIVATED, GET OUT:
  247.   if getOutaHere = 1 then
  248.     put empty into getOutaHere
  249.     exit mouseUp
  250.   end if
  251.  
  252.   -- IF YOU'RE AT TOP OF LIST, GET OUT:
  253.   if first line of field "Window" = first line of master then exit mouseUp
  254.  
  255.   -- GO TO THE TOP FAST:
  256.   if the shiftkey is down and the commandKey is down then
  257.     if first line of field "Window" = first line of Master then exit mouseUp
  258.     put 1 into lineNo
  259.     lock screen
  260.     put line 1 to 12 of Master into field "Window"
  261.     unlock screen with visual dissolve fast
  262.     exit mouseUp
  263.   end if
  264.  
  265.   -- FOR MOVING A SCREEN FULLA INDEX AT ONCE:
  266.   if the commandKey is down or the shiftKey is down then
  267.     if lineNo ‚⧠12 then put 13 into lineNo
  268.     subtract 12 from lineNo
  269.     lock screen
  270.     put line lineNo to lineNo + 11 of master into field "Window"
  271.     unlock screen with visual dissolve fast
  272.     exit mouseUp
  273.   end if
  274.  
  275.   UNDER ORDINARY CIRCUMSTANCES, LINE-BY-LINE:
  276.   if lineNo > 1 then subtract 1 from lineNo
  277.   put line lineNo to (lineNo  + 11) of master into field "Window"
  278.  
  279. End MOUSEUP
  280.  
  281. -----------------------------------
  282. -- UCMD'S LIKE 'HELPER' IN BKGND --
  283. -----------------------------------
  284.  
  285.  
  286.  
  287.  
  288.  
  289. -- part 35 (button)
  290. -- low flags: 00
  291. -- high flags: 2000
  292. -- rect: left=322 top=306 right=319 bottom=333
  293. -- title width / last selected line: 0
  294. -- icon id / first selected line: 0 / 0
  295. -- text alignment: 1
  296. -- font id: 0
  297. -- text size: 12
  298. -- style flags: 0
  299. -- line height: 16
  300. -- part name: Down
  301. ----- HyperTalk script -----
  302.  
  303. --------------------------------
  304. -- DOWN ARROW STUFF LIKE UP   --
  305. -- SEE COMMENTARY IN UP ARROW --
  306. --------------------------------
  307.  
  308. On MOUSESTILLDOWN
  309.  
  310.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  311.   if the optionKey is down and the commandKey is not down then
  312.     helper helpUpDown
  313.     exit mouseStillDown
  314.   end if
  315.  
  316.   global lineNo,master,getOutaHere
  317.  
  318.   put 1 into getOutaHere
  319.  
  320.   if last line of field window = last line of master then exit mouseStillDown
  321.  
  322.   if the commandKey is down or the shiftKey is down then
  323.     add 12 to lineNo
  324.     if lineNo + 11 > the number of lines in master then put the number of lines in master - 11 into lineNo
  325.     lock screen
  326.     put line lineNo to lineNo + 11 of master into field "Window"
  327.     unlock screen with visual dissolve fast
  328.     exit mouseStillDown
  329.   end if
  330.  
  331.   add 1 to lineNo
  332.   put line lineNo to (lineNo + 11) of master into field "Window"
  333.  
  334. End MOUSESTILLDOWN
  335.  
  336.  
  337. On MOUSEUP
  338.  
  339.   -- GET HELP IF OPTIONKEY IS DOWN:
  340.   if the optionKey is down and the commandKey is not down then
  341.     helper helpUpDown
  342.     exit mouseUp
  343.   end if
  344.  
  345.   global lineNo,master,getOutaHere
  346.  
  347.   if getOutaHere = 1 then
  348.     put empty into getOutaHere
  349.     exit mouseUp
  350.   end if
  351.  
  352.   if last line of field window = last line of master then exit mouseUp
  353.  
  354.   if the commandKey is down and the shiftKey is down then
  355.  
  356.     if last line of field window = last line of master then exit mouseUp
  357.     put the number of lines in Master - 11 into lineNo
  358.     lock screen
  359.     put line (the number of lines in Master - 11) to (the number of lines in Master) of Master into field "Window"
  360.     unlock screen with visual dissolve fast
  361.     exit mouseUp
  362.  
  363.   end if
  364.  
  365.   if the commandKey is down or the shiftKey is down then
  366.     add 12 to lineNo
  367.     if lineNo + 11 > the number of lines in master then put the number of lines in master - 11 into lineNo
  368.     lock screen
  369.     put line lineNo to lineNo + 11 of master into field "Window"
  370.     unlock screen with visual dissolve fast
  371.     exit mouseUp
  372.   end if
  373.  
  374.   add 1 to lineNo
  375.   put line lineNo to (lineNo + 11) of master into field "Window"
  376.  
  377. End MOUSEUP
  378.  
  379. -----------------------------------
  380. -- UCMD'S LIKE 'HELPER' IN BKGND --
  381. -----------------------------------
  382.  
  383. ---------------------------------------------
  384. -- "BEEN DOWN SO LONG LOOKS LIKE UP TO ME" --
  385. -- FROM THE BOOK BY RICHARD FARINA         --
  386. ---------------------------------------------
  387.  
  388.  
  389.  
  390.  
  391.  
  392. -- part 69 (field)
  393. -- low flags: 01
  394. -- high flags: 0000
  395. -- rect: left=24 top=200 right=212 bottom=80
  396. -- title width / last selected line: 0
  397. -- icon id / first selected line: 0 / 0
  398. -- text alignment: 0
  399. -- font id: 221
  400. -- text size: 9
  401. -- style flags: 0
  402. -- line height: 9
  403. -- part name: Action
  404. ----- HyperTalk script -----
  405.  
  406. --------------------------------
  407. -- CLASSIFICATION FIELD STUFF --
  408. --------------------------------
  409.  
  410. On MOUSEDOWN
  411.  
  412.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  413.   if the optionKey is down and the commandKey is not down then
  414.     helper helpClass
  415.     exit MOUSEDOWN
  416.   end if
  417.  
  418.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  419.   if the userlevel ‚↠1 then classIt the number of me
  420.  
  421. End MOUSEDOWN
  422.  
  423. -----------------------------------
  424. -- UCMD'S LIKE 'HELPER' IN BKGND --
  425. -----------------------------------
  426.  
  427.  
  428.  
  429.  
  430. -- part 70 (field)
  431. -- low flags: 01
  432. -- high flags: 0000
  433. -- rect: left=24 top=212 right=224 bottom=80
  434. -- title width / last selected line: 0
  435. -- icon id / first selected line: 0 / 0
  436. -- text alignment: 0
  437. -- font id: 221
  438. -- text size: 9
  439. -- style flags: 0
  440. -- line height: 9
  441. -- part name: Arts
  442. ----- HyperTalk script -----
  443.  
  444. --------------------------------
  445. -- CLASSIFICATION FIELD STUFF --
  446. --------------------------------
  447.  
  448. On MOUSEDOWN
  449.  
  450.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  451.   if the optionKey is down and the commandKey is not down then
  452.     helper helpClass
  453.     exit MOUSEDOWN
  454.   end if
  455.  
  456.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  457.   if the userlevel ‚↠1 then classIt the number of me
  458.  
  459. End MOUSEDOWN
  460.  
  461. -----------------------------------
  462. -- UCMD'S LIKE 'HELPER' IN BKGND --
  463. -----------------------------------
  464.  
  465.  
  466.  
  467.  
  468. -- part 71 (field)
  469. -- low flags: 01
  470. -- high flags: 0000
  471. -- rect: left=24 top=224 right=236 bottom=80
  472. -- title width / last selected line: 0
  473. -- icon id / first selected line: 0 / 0
  474. -- text alignment: 0
  475. -- font id: 221
  476. -- text size: 9
  477. -- style flags: 0
  478. -- line height: 9
  479. -- part name: Comedy
  480. ----- HyperTalk script -----
  481.  
  482. --------------------------------
  483. -- CLASSIFICATION FIELD STUFF --
  484. --------------------------------
  485.  
  486. On MOUSEDOWN
  487.  
  488.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  489.   if the optionKey is down and the commandKey is not down then
  490.     helper helpClass
  491.     exit MOUSEDOWN
  492.   end if
  493.  
  494.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  495.   if the userlevel ‚↠1 then classIt the number of me
  496.  
  497. End MOUSEDOWN
  498.  
  499. -----------------------------------
  500. -- UCMD'S LIKE 'HELPER' IN BKGND --
  501. -----------------------------------
  502.  
  503.  
  504.  
  505.  
  506. -- part 72 (field)
  507. -- low flags: 01
  508. -- high flags: 0000
  509. -- rect: left=92 top=200 right=212 bottom=152
  510. -- title width / last selected line: 0
  511. -- icon id / first selected line: 0 / 0
  512. -- text alignment: 0
  513. -- font id: 221
  514. -- text size: 9
  515. -- style flags: 0
  516. -- line height: 9
  517. -- part name: Drama
  518. ----- HyperTalk script -----
  519.  
  520. --------------------------------
  521. -- CLASSIFICATION FIELD STUFF --
  522. --------------------------------
  523.  
  524. On MOUSEDOWN
  525.  
  526.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  527.   if the optionKey is down and the commandKey is not down then
  528.     helper helpClass
  529.     exit MOUSEDOWN
  530.   end if
  531.  
  532.   if the userlevel ‚↠1 then classIt the number of me
  533.  
  534. End MOUSEDOWN
  535.  
  536. -----------------------------------
  537. -- UCMD'S LIKE 'HELPER' IN BKGND --
  538. -----------------------------------
  539.  
  540.  
  541.  
  542.  
  543. -- part 73 (field)
  544. -- low flags: 01
  545. -- high flags: 0000
  546. -- rect: left=92 top=212 right=224 bottom=152
  547. -- title width / last selected line: 0
  548. -- icon id / first selected line: 0 / 0
  549. -- text alignment: 0
  550. -- font id: 221
  551. -- text size: 9
  552. -- style flags: 0
  553. -- line height: 9
  554. -- part name: Fantasy
  555. ----- HyperTalk script -----
  556.  
  557. --------------------------------
  558. -- CLASSIFICATION FIELD STUFF --
  559. --------------------------------
  560.  
  561. On MOUSEDOWN
  562.  
  563.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  564.   if the optionKey is down and the commandKey is not down then
  565.     helper helpClass
  566.     exit MOUSEDOWN
  567.   end if
  568.  
  569.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  570.   if the userlevel ‚↠1 then classIt the number of me
  571.  
  572. End MOUSEDOWN
  573.  
  574. -----------------------------------
  575. -- UCMD'S LIKE 'HELPER' IN BKGND --
  576. -----------------------------------
  577.  
  578.  
  579.  
  580.  
  581. -- part 74 (field)
  582. -- low flags: 01
  583. -- high flags: 0000
  584. -- rect: left=92 top=224 right=236 bottom=152
  585. -- title width / last selected line: 0
  586. -- icon id / first selected line: 0 / 0
  587. -- text alignment: 0
  588. -- font id: 221
  589. -- text size: 9
  590. -- style flags: 0
  591. -- line height: 9
  592. -- part name: Horror
  593. ----- HyperTalk script -----
  594.  
  595. --------------------------------
  596. -- CLASSIFICATION FIELD STUFF --
  597. --------------------------------
  598.  
  599. On MOUSEDOWN
  600.  
  601.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  602.   if the optionKey is down and the commandKey is not down then
  603.     helper helpClass
  604.     exit MOUSEDOWN
  605.   end if
  606.  
  607.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  608.   if the userlevel ‚↠1 then classIt the number of me
  609.  
  610. End MOUSEDOWN
  611.  
  612. -----------------------------------
  613. -- UCMD'S LIKE 'HELPER' IN BKGND --
  614. -----------------------------------
  615.  
  616.  
  617.  
  618.  
  619. -- part 75 (field)
  620. -- low flags: 01
  621. -- high flags: 0000
  622. -- rect: left=160 top=200 right=212 bottom=222
  623. -- title width / last selected line: 0
  624. -- icon id / first selected line: 0 / 0
  625. -- text alignment: 0
  626. -- font id: 221
  627. -- text size: 9
  628. -- style flags: 0
  629. -- line height: 9
  630. -- part name: Kids
  631. ----- HyperTalk script -----
  632.  
  633. --------------------------------
  634. -- CLASSIFICATION FIELD STUFF --
  635. --------------------------------
  636.  
  637. On MOUSEDOWN
  638.  
  639.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  640.   if the optionKey is down and the commandKey is not down then
  641.     helper helpClass
  642.     exit MOUSEDOWN
  643.   end if
  644.  
  645.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  646.   if the userlevel ‚↠1 then classIt the number of me
  647.  
  648. End MOUSEDOWN
  649.  
  650. -----------------------------------
  651. -- UCMD'S LIKE 'HELPER' IN BKGND --
  652. -----------------------------------
  653.  
  654.  
  655.  
  656.  
  657. -- part 76 (field)
  658. -- low flags: 01
  659. -- high flags: 0000
  660. -- rect: left=160 top=212 right=224 bottom=222
  661. -- title width / last selected line: 0
  662. -- icon id / first selected line: 0 / 0
  663. -- text alignment: 0
  664. -- font id: 221
  665. -- text size: 9
  666. -- style flags: 0
  667. -- line height: 9
  668. -- part name: Music
  669. ----- HyperTalk script -----
  670.  
  671. --------------------------------
  672. -- CLASSIFICATION FIELD STUFF --
  673. --------------------------------
  674.  
  675. On MOUSEDOWN
  676.  
  677.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  678.   if the optionKey is down and the commandKey is not down then
  679.     helper helpClass
  680.     exit MOUSEDOWN
  681.   end if
  682.  
  683.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  684.   if the userlevel ‚↠1 then classIt the number of me
  685.  
  686. End MOUSEDOWN
  687.  
  688. -----------------------------------
  689. -- UCMD'S LIKE 'HELPER' IN BKGND --
  690. -----------------------------------
  691.  
  692.  
  693.  
  694.  
  695. -- part 77 (field)
  696. -- low flags: 01
  697. -- high flags: 0000
  698. -- rect: left=227 top=212 right=224 bottom=288
  699. -- title width / last selected line: 0
  700. -- icon id / first selected line: 0 / 0
  701. -- text alignment: 0
  702. -- font id: 221
  703. -- text size: 9
  704. -- style flags: 0
  705. -- line height: 9
  706. -- part name: Thriller
  707. ----- HyperTalk script -----
  708.  
  709. --------------------------------
  710. -- CLASSIFICATION FIELD STUFF --
  711. --------------------------------
  712.  
  713. On MOUSEDOWN
  714.  
  715.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  716.   if the optionKey is down and the commandKey is not down then
  717.     helper helpClass
  718.     exit MOUSEDOWN
  719.   end if
  720.  
  721.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  722.   if the userlevel ‚↠1 then classIt the number of me
  723.  
  724. End MOUSEDOWN
  725.  
  726. -----------------------------------
  727. -- UCMD'S LIKE 'HELPER' IN BKGND --
  728. -----------------------------------
  729.  
  730.  
  731.  
  732.  
  733. -- part 78 (field)
  734. -- low flags: 01
  735. -- high flags: 0000
  736. -- rect: left=160 top=224 right=236 bottom=222
  737. -- title width / last selected line: 0
  738. -- icon id / first selected line: 0 / 0
  739. -- text alignment: 0
  740. -- font id: 221
  741. -- text size: 9
  742. -- style flags: 0
  743. -- line height: 9
  744. -- part name: Romance
  745. ----- HyperTalk script -----
  746.  
  747. --------------------------------
  748. -- CLASSIFICATION FIELD STUFF --
  749. --------------------------------
  750.  
  751. On MOUSEDOWN
  752.  
  753.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  754.   if the optionKey is down and the commandKey is not down then
  755.     helper helpClass
  756.     exit MOUSEDOWN
  757.   end if
  758.  
  759.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  760.   if the userlevel ‚↠1 then classIt the number of me
  761.  
  762. End MOUSEDOWN
  763.  
  764. -----------------------------------
  765. -- UCMD'S LIKE 'HELPER' IN BKGND --
  766. -----------------------------------
  767.  
  768.  
  769.  
  770.  
  771. -- part 79 (field)
  772. -- low flags: 01
  773. -- high flags: 0000
  774. -- rect: left=227 top=200 right=212 bottom=288
  775. -- title width / last selected line: 0
  776. -- icon id / first selected line: 0 / 0
  777. -- text alignment: 0
  778. -- font id: 221
  779. -- text size: 9
  780. -- style flags: 0
  781. -- line height: 9
  782. -- part name: Special
  783. ----- HyperTalk script -----
  784.  
  785. --------------------------------
  786. -- CLASSIFICATION FIELD STUFF --
  787. --------------------------------
  788.  
  789. On MOUSEDOWN
  790.  
  791.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  792.   if the optionKey is down and the commandKey is not down then
  793.     helper helpClass
  794.     exit MOUSEDOWN
  795.   end if
  796.  
  797.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  798.   if the userlevel ‚↠1 then classIt the number of me
  799.  
  800. End MOUSEDOWN
  801.  
  802. -----------------------------------
  803. -- UCMD'S LIKE 'HELPER' IN BKGND --
  804. -----------------------------------
  805.  
  806.  
  807.  
  808.  
  809. -- part 80 (field)
  810. -- low flags: 01
  811. -- high flags: 0000
  812. -- rect: left=227 top=224 right=236 bottom=288
  813. -- title width / last selected line: 0
  814. -- icon id / first selected line: 0 / 0
  815. -- text alignment: 0
  816. -- font id: 221
  817. -- text size: 9
  818. -- style flags: 0
  819. -- line height: 9
  820. -- part name: Western
  821. ----- HyperTalk script -----
  822.  
  823. --------------------------------
  824. -- CLASSIFICATION FIELD STUFF --
  825. --------------------------------
  826.  
  827. On MOUSEDOWN
  828.  
  829.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  830.   if the optionKey is down and the commandKey is not down then
  831.     helper helpClass
  832.     exit MOUSEDOWN
  833.   end if
  834.  
  835.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  836.   if the userlevel ‚↠1 then classIt the number of me
  837.  
  838. End MOUSEDOWN
  839.  
  840. -----------------------------------
  841. -- UCMD'S LIKE 'HELPER' IN BKGND --
  842. -----------------------------------
  843.  
  844.  
  845.  
  846.  
  847. -- part 81 (button)
  848. -- low flags: 00
  849. -- high flags: 2000
  850. -- rect: left=493 top=288 right=301 bottom=504
  851. -- title width / last selected line: 0
  852. -- icon id / first selected line: 0 / 0
  853. -- text alignment: 1
  854. -- font id: 0
  855. -- text size: 12
  856. -- style flags: 0
  857. -- line height: 16
  858. -- part name: UpAll
  859. ----- HyperTalk script -----
  860.  
  861. ------------------
  862. -- UP ALL STUFF --
  863. ------------------
  864.  
  865. On MOUSEUP
  866.  
  867.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  868.   if the optionKey is down and the commandKey is not down then
  869.     helper helpAllUpDown
  870.     exit mouseUp
  871.   end if
  872.  
  873.   global lineNo,master,lineNo
  874.  
  875.   -- IF YOU'RE ALREADY AT THE TOP, EXIT:
  876.   if first line of field "Window" = first line of Master then exit mouseUp
  877.  
  878.   -- PUT FIRST 12 LINES IN INDEX WINDOW
  879.   lock screen
  880.   put line 1 to 12 of Master into field "Window"
  881.   put 1 into lineNo
  882.   unlock screen with visual dissolve fast
  883.  
  884. End MOUSEUP
  885.  
  886. -----------------------------------
  887. -- UCMD'S LIKE 'HELPER' IN BKGND --
  888. -----------------------------------
  889.  
  890.  
  891.  
  892.  
  893.  
  894. -- part 82 (button)
  895. -- low flags: 00
  896. -- high flags: 2000
  897. -- rect: left=493 top=306 right=319 bottom=504
  898. -- title width / last selected line: 0
  899. -- icon id / first selected line: 0 / 0
  900. -- text alignment: 1
  901. -- font id: 0
  902. -- text size: 12
  903. -- style flags: 0
  904. -- line height: 16
  905. -- part name: DownAll
  906. ----- HyperTalk script -----
  907.  
  908. ---------------------------------------
  909. -- DOWN ALL ARROW STUFF LIKE UP ALL  --
  910. -- SEE COMMENTARY IN UP ALL ARROW    --
  911. ---------------------------------------
  912.  
  913. On MouseUp
  914.  
  915.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  916.   if the optionKey is down and the commandKey is not down then
  917.     helper helpAllUpDown
  918.     exit mouseUp
  919.   end if
  920.  
  921.   global lineNo,master,lineNo
  922.  
  923.   if last line of field window = last line of master then exit mouseUp
  924.  
  925.   lock screen
  926.   put line (the number of lines in Master - 11) to (the number of lines in Master) of Master into field "Window"
  927.   put the number of lines in master - 11 into lineNo
  928.   unlock screen with visual dissolve fast
  929.  
  930. End MOUSEUP
  931.  
  932. -----------------------------------
  933. -- UCMD'S LIKE 'HELPER' IN BKGND --
  934. -----------------------------------
  935.  
  936.  
  937.  
  938.  
  939.  
  940. -- part 83 (field)
  941. -- low flags: 01
  942. -- high flags: 0000
  943. -- rect: left=203 top=90 right=102 bottom=249
  944. -- title width / last selected line: 0
  945. -- icon id / first selected line: 0 / 0
  946. -- text alignment: 0
  947. -- font id: 221
  948. -- text size: 9
  949. -- style flags: 0
  950. -- line height: 9
  951. -- part name: Color
  952. ----- HyperTalk script -----
  953.  
  954. -----------------------
  955. -- COLOR FIELD STUFF --
  956. -----------------------
  957.  
  958. On MOUSEDOWN
  959.  
  960.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  961.   if the optionKey is down and the commandKey is not down then
  962.     helper helpClrOwn
  963.     exit MOUSEDOWN
  964.   end if
  965.  
  966.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  967.   if the userlevel ‚↠1 then classIt the number of me
  968.  
  969. End MOUSEDOWN
  970.  
  971. -----------------------------------
  972. -- UCMD'S LIKE 'HELPER' IN BKGND --
  973. -----------------------------------
  974.  
  975.  
  976.  
  977.  
  978. -- part 84 (field)
  979. -- low flags: 01
  980. -- high flags: 0000
  981. -- rect: left=249 top=90 right=102 bottom=288
  982. -- title width / last selected line: 0
  983. -- icon id / first selected line: 0 / 0
  984. -- text alignment: 0
  985. -- font id: 221
  986. -- text size: 9
  987. -- style flags: 0
  988. -- line height: 9
  989. -- part name: Own
  990. ----- HyperTalk script -----
  991.  
  992. ---------------------
  993. -- OWN FIELD STUFF --
  994. ---------------------
  995.  
  996. On MOUSEDOWN
  997.  
  998.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  999.   if the optionKey is down and the commandKey is not down then
  1000.     helper helpClrOwn
  1001.     exit MOUSEDOWN
  1002.   end if
  1003.  
  1004.   -- MAKE FIRST CHAR INTO A CHECK BOX:
  1005.   if the userlevel ‚↠1 then classIt the number of me
  1006.  
  1007. End MOUSEDOWN
  1008.  
  1009. -----------------------------------
  1010. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1011. -----------------------------------
  1012.  
  1013.  
  1014.  
  1015.  
  1016. -- part 91 (field)
  1017. -- low flags: 02
  1018. -- high flags: 0000
  1019. -- rect: left=61 top=41 right=56 bottom=204
  1020. -- title width / last selected line: 0
  1021. -- icon id / first selected line: 0 / 0
  1022. -- text alignment: 0
  1023. -- font id: 2
  1024. -- text size: 10
  1025. -- style flags: 0
  1026. -- line height: 13
  1027. -- part name: Title
  1028. ----- HyperTalk script -----
  1029.  
  1030. ---------------------------------------
  1031. -- TITLE FIELD OPEN/CLOSEFIELD STUFF --
  1032. ---------------------------------------
  1033.  
  1034. On OPENFIELD
  1035.  
  1036.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1037.   if the optionKey is down and the commandKey is not down then
  1038.     helper helpTitStrDir
  1039.     exit OPENFIELD
  1040.   end if
  1041.  
  1042.   -- STORES OLD CONTENTS FOR LATER:
  1043.   global theFirstTitle,fieldIsOpen
  1044.   put empty into theFirstTitle
  1045.   put line 1 of me into theFirstTitle
  1046.   put number of me into fieldIsOpen
  1047.   -- NOW CLOSEFIELD GETS SENT ON ANY CLICK!
  1048.   -- THIS WILL FORCE AN INDEX ADJUSTMENT!
  1049.  
  1050. End OPENFIELD
  1051.  
  1052. -----------------------------------
  1053. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1054. -----------------------------------
  1055.  
  1056. On CLOSEFIELD
  1057.  
  1058.   global hiButton,TitleMaster,theFirstTitle,lineNo
  1059.   global newTitle,fieldIsOpen,labelMaster,master
  1060.   put empty into fieldIsOpen
  1061.  
  1062.   -- PUT RETURN AT END OF LINE SO SELECT LOOKS NICE:
  1063.   -- (HAS TO BE DONE SINCE FIELD MAKES RETURN = TAB)
  1064.   if last char of line 1 of me ‚↠return then
  1065.     put return after line 1 of me
  1066.   end if
  1067.  
  1068.   -- COMPARES OLD TITLE AND NEW:
  1069.   put empty into theNewTitle
  1070.   put line 1 of me into theNewTitle
  1071.   if theFirstTitle = theNewTitle then exit closeField
  1072.  
  1073.   -- ADJUSTING THE INDEX:
  1074.   set cursor to 4
  1075.   put "Adjusting your title index..."
  1076.   lock screen
  1077.   set lockmessages to true
  1078.  
  1079.   -- GET THE HIGHEST NUMBER OF ITEMS:
  1080.   if the number of items in theFirstTitle > the number of items in theNewTitle then
  1081.     put the number of items in theFirstTitle into noItems
  1082.   else
  1083.     put the number of items in theNewTitle into noItems
  1084.   end if
  1085.  
  1086.   -- THE OLD TITLE GETS DONE FIRST:
  1087.   repeat with i = 1 to noItems
  1088.  
  1089.     -- CHECK FOR EMPTY:
  1090.     if item i of theFirstTitle ‚↠empty then
  1091.       put item i of theFirstTitle into firstTitle
  1092.  
  1093.       -- FILTER EXTRANEOUS CHARS OUT OF TITLE ITEM:
  1094.       if last char of firstTitle = return then
  1095.         delete last char of firstTitle
  1096.       end if
  1097.       if first char of firstTitle = space then
  1098.         delete first char of firstTitle
  1099.       end if
  1100.  
  1101.       -- FIND OUT IF THIS TITLE EXISTS ELSEWHERE:
  1102.       put the number of this card into cardNo
  1103.       find whole firstTitle in fld number of me
  1104.       if the number of this card = cardNo then
  1105.  
  1106.         -- GET IT READY FOR THE INDEX ADJUSTMENT:
  1107.         if first char of firstTitle ‚↠"‚àÇ" then
  1108.           put "‚àÇ" before firstTitle
  1109.         end if
  1110.         put the number of lines in char 1 to offset(firstTitle,TitleMaster) of TitleMaster into firstLine
  1111.  
  1112.         -- DELETE IF NECESSARIO:
  1113.         if line firstLine of TitleMaster = firstTitle then
  1114.           delete line firstLine of TitleMaster
  1115.         end if
  1116.  
  1117.       else
  1118.  
  1119.         -- THIS IS WHEN THE TITLE EXISTS ELSEWHERE:
  1120.         go to card cardNo  -- BACK TO ORIG CARD
  1121.         if first char of firstTitle ‚↠"‚àÇ" then
  1122.           put "‚àÇ" before firstTitle
  1123.         end if
  1124.       end if
  1125.  
  1126.     end if
  1127.  
  1128.     -- CHECK NEW TITLE FOR EMPTIES:
  1129.     if item i of theNewTitle ‚↠empty then
  1130.       put item i of theNewTitle into newTitle
  1131.  
  1132.       -- FILTER EXTRANEOUS CHARS OUT OF TITLE ITEM:
  1133.       if first char of newTitle = space then
  1134.         delete first char of newTitle
  1135.       end if
  1136.       if first char of newTitle ‚↠"‚àÇ" then
  1137.         put "‚àÇ" before newTitle
  1138.       end if
  1139.       if last char of newTitle = return then
  1140.         delete last char of newTitle
  1141.       end if
  1142.  
  1143.       -- TELLS YOU WHERE IN INDEX IT IS:
  1144.       put the number of lines in char 1 to offset(newTitle,TitleMaster) of TitleMaster into newLine
  1145.  
  1146.       -- TRY TO PUT NEW TITLE INTO THE TITLE INDEX:
  1147.       if line newLine of TitleMaster = newTitle then
  1148.       else
  1149.         put newTitle & return before TitleMaster
  1150.         put sortLines(TitleMaster) into TitleMaster
  1151.       end if
  1152.  
  1153.     end if
  1154.  
  1155.   end repeat
  1156.  
  1157.   -- REFRESHES THE INDEX WINDOW & LABEL:
  1158.   if hiButton = 30 then
  1159.     put TitleMaster into master
  1160.     put line lineNo to lineNo + 11 of Master into fld "Window"
  1161.   end if
  1162.  
  1163.   -- DON'T FORGET THE VCR TAPE LABEL:
  1164.   put labelMaster into fld "Label"
  1165.   unlock screen with visual dissolve fast
  1166.   set lockmessages to false
  1167.   hide msg
  1168.  
  1169. End CLOSEFIELD
  1170.  
  1171.  
  1172.  
  1173.  
  1174. -- part 92 (field)
  1175. -- low flags: 02
  1176. -- high flags: 0000
  1177. -- rect: left=61 top=55 right=70 bottom=288
  1178. -- title width / last selected line: 0
  1179. -- icon id / first selected line: 0 / 0
  1180. -- text alignment: 0
  1181. -- font id: 2
  1182. -- text size: 10
  1183. -- style flags: 0
  1184. -- line height: 13
  1185. -- part name: Star
  1186. ----- HyperTalk script -----
  1187.  
  1188. ---------------------------------------
  1189. -- STAR FIELD OPEN/CLOSE STUFF       --
  1190. -- SEE TITLE FIELD FOR MORE COMMENTS --
  1191. ---------------------------------------
  1192.  
  1193. On OPENFIELD
  1194.  
  1195.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1196.   if the optionKey is down and the commandKey is not down then
  1197.     helper helpTitStrDir
  1198.     exit openField
  1199.   end if
  1200.  
  1201.   global theFirstStar,fieldIsOpen
  1202.   put empty into theFirstStar
  1203.   put line 1 of me into theFirstStar
  1204.   put number of me into fieldIsOpen
  1205.  
  1206. End OPENFIELD
  1207.  
  1208. -----------------------------------
  1209. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1210. -----------------------------------
  1211.  
  1212. On CLOSEFIELD
  1213.  
  1214.   global hiButton,StarMaster,theFirstStar,lineNo,master
  1215.   global newStar,fieldIsOpen,labelMaster
  1216.   put empty into fieldIsOpen
  1217.   if last char of line 1 of me ‚↠return then
  1218.     put return after line 1 of me
  1219.   end if
  1220.  
  1221.   put empty into theNewStar
  1222.   put line 1 of me into theNewStar
  1223.   if theFirstStar = theNewStar then exit closeField
  1224.  
  1225.   set cursor to 4
  1226.   put "Adjusting your star index..."
  1227.   lock screen
  1228.   set lockmessages to true
  1229.  
  1230.   if the number of items in theFirstStar > the number of items in theNewStar then
  1231.     put the number of items in theFirstStar into noItems
  1232.   else
  1233.     put the number of items in theNewStar into noItems
  1234.   end if
  1235.  
  1236.   repeat with i = 1 to noItems
  1237.  
  1238.     if item i of theFirstStar ‚↠empty then
  1239.  
  1240.       put item i of theFirstStar into firstStar
  1241.  
  1242.       if last char of firstStar = return then
  1243.         delete last char of firstStar
  1244.       end if
  1245.       if first char of firstStar = space then
  1246.         delete first char of firstStar
  1247.       end if
  1248.       put the number of this card into cardNo
  1249.  
  1250.       find whole firstStar in fld number of me
  1251.       if the number of this card = cardNo then
  1252.  
  1253.         if first char of firstStar ‚↠"‚àÇ" then
  1254.           put "‚àÇ" before firstStar
  1255.         end if
  1256.  
  1257.         put the number of lines in char 1 to offset(firstStar,StarMaster) of StarMaster into firstLine
  1258.  
  1259.         if line firstLine of starMaster = firstStar then
  1260.           delete line firstLine of StarMaster
  1261.         end if
  1262.       else
  1263.         go to card cardNo
  1264.         if first char of firstStar ‚↠"‚àÇ" then
  1265.           put "‚àÇ" before firstStar
  1266.         end if
  1267.       end if
  1268.  
  1269.     end if
  1270.  
  1271.  
  1272.     if item i of theNewStar ‚↠empty then
  1273.  
  1274.       put item i of theNewStar into newStar
  1275.  
  1276.       if first char of newStar = space then
  1277.         delete first char of newStar
  1278.       end if
  1279.       if first char of newStar ‚↠"‚àÇ" then
  1280.         put "‚àÇ" before newStar
  1281.       end if
  1282.       if last char of newStar = return then
  1283.         delete last char of newStar
  1284.       end if
  1285.  
  1286.       put the number of lines in char 1 to offset(newStar,StarMaster) of StarMaster into newLine
  1287.  
  1288.       if line newLine of starMaster = newStar then
  1289.       else
  1290.         put newStar & return before StarMaster
  1291.         put sortLines(StarMaster) into StarMaster
  1292.       end if
  1293.  
  1294.     end if
  1295.  
  1296.   end repeat
  1297.  
  1298.   if hiButton = 31 then
  1299.     put StarMaster into master
  1300.     put line lineNo to lineNo + 11 of Master into fld "Window"
  1301.   end if
  1302.  
  1303.   put labelMaster into fld "Label"
  1304.   unlock screen with visual dissolve fast
  1305.   set lockmessages to false
  1306.   hide msg
  1307.  
  1308. End CLOSEFIELD
  1309.  
  1310.  
  1311.  
  1312.  
  1313. -- part 93 (field)
  1314. -- low flags: 02
  1315. -- high flags: 0000
  1316. -- rect: left=81 top=69 right=84 bottom=288
  1317. -- title width / last selected line: 0
  1318. -- icon id / first selected line: 0 / 0
  1319. -- text alignment: 0
  1320. -- font id: 2
  1321. -- text size: 10
  1322. -- style flags: 0
  1323. -- line height: 13
  1324. -- part name: Director
  1325. ----- HyperTalk script -----
  1326.  
  1327. ---------------------------------------
  1328. -- DIRECTOR FIELD OPEN/CLOSE STUFF   --
  1329. -- SEE TITLE FIELD FOR MORE COMMENTS --
  1330. ---------------------------------------
  1331.  
  1332. On OPENFIELD
  1333.  
  1334.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1335.   if the optionKey is down and the commandKey is not down then
  1336.     helper helpTitStrDir
  1337.     exit OPENFIELD
  1338.   end if
  1339.  
  1340.   global theFirstDirector,fieldIsOpen
  1341.   put empty into theFirstDirector
  1342.   put line 1 of me into theFirstDirector
  1343.   put number of me into fieldIsOpen
  1344.  
  1345. End OPENFIELD
  1346.  
  1347. -----------------------------------
  1348. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1349. -----------------------------------
  1350.  
  1351. On CLOSEFIELD
  1352.  
  1353.   global hiButton,DirectorMaster,theFirstDirector,lineNo,master
  1354.   global newDirector,fieldIsOpen
  1355.   put empty into fieldIsOpen
  1356.   if last char of line 1 of me ‚↠return then
  1357.     put return after line 1 of me
  1358.   end if
  1359.  
  1360.   put empty into theNewDirector
  1361.   put line 1 of me into theNewDirector
  1362.   if theFirstDirector = theNewDirector then exit closeField
  1363.  
  1364.   set cursor to 4
  1365.   put "Adjusting your director index..."
  1366.   lock screen
  1367.   set lockmessages to true
  1368.  
  1369.   if the number of items in theFirstDirector > the number of items in theNewDirector then
  1370.     put the number of items in theFirstDirector into noItems
  1371.   else
  1372.     put the number of items in theNewDirector into noItems
  1373.   end if
  1374.  
  1375.   repeat with i = 1 to noItems
  1376.  
  1377.     if item i of theFirstDirector ‚↠empty then
  1378.  
  1379.       put item i of theFirstDirector into firstDirector
  1380.  
  1381.       if last char of firstDirector = return then
  1382.         delete last char of firstDirector
  1383.       end if
  1384.       if first char of firstDirector = space then
  1385.         delete first char of firstDirector
  1386.       end if
  1387.       put the number of this card into cardNo
  1388.  
  1389.       find whole firstDirector in fld number of me
  1390.       if the number of this card = cardNo then
  1391.  
  1392.         if first char of firstDirector ‚↠"‚àÇ" then
  1393.           put "‚àÇ" before firstDirector
  1394.         end if
  1395.  
  1396.         put the number of lines in char 1 to offset(firstDirector,DirectorMaster) of DirectorMaster into firstLine
  1397.  
  1398.         if line firstLine of DirectorMaster = firstDirector then
  1399.           delete line firstLine of DirectorMaster
  1400.         end if
  1401.       else
  1402.         go to card cardNo
  1403.         if first char of firstDirector ‚↠"‚àÇ" then
  1404.           put "‚àÇ" before firstDirector
  1405.         end if
  1406.       end if
  1407.  
  1408.     end if
  1409.  
  1410.  
  1411.     if item i of theNewDirector ‚↠empty then
  1412.  
  1413.       put item i of theNewDirector into newDirector
  1414.  
  1415.       if first char of newDirector = space then
  1416.         delete first char of newDirector
  1417.       end if
  1418.       if first char of newDirector ‚↠"‚àÇ" then
  1419.         put "‚àÇ" before newDirector
  1420.       end if
  1421.       if last char of newDirector = return then
  1422.         delete last char of newDirector
  1423.       end if
  1424.  
  1425.       put the number of lines in char 1 to offset(newDirector,DirectorMaster) of DirectorMaster into newLine
  1426.  
  1427.       if line newLine of DirectorMaster = newDirector then
  1428.       else
  1429.         put newDirector & return before DirectorMaster
  1430.         put sortLines(DirectorMaster) into DirectorMaster
  1431.       end if
  1432.  
  1433.     end if
  1434.  
  1435.   end repeat
  1436.  
  1437.   if hiButton = 32 then
  1438.     put DirectorMaster into master
  1439.     put line lineNo to lineNo + 11 of Master into fld "Window"
  1440.   end if
  1441.  
  1442.   put labelMaster into fld "Label"
  1443.   unlock screen with visual dissolve fast
  1444.   set lockmessages to false
  1445.   hide msg
  1446.  
  1447. End CLOSEFIELD
  1448.  
  1449.  
  1450.  
  1451.  
  1452. -- part 94 (field)
  1453. -- low flags: 02
  1454. -- high flags: 0000
  1455. -- rect: left=59 top=88 right=100 bottom=100
  1456. -- title width / last selected line: 0
  1457. -- icon id / first selected line: 0 / 0
  1458. -- text alignment: 0
  1459. -- font id: 128
  1460. -- text size: 9
  1461. -- style flags: 0
  1462. -- line height: 12
  1463. -- part name: Rating
  1464. ----- HyperTalk script -----
  1465.  
  1466. ------------------------
  1467. -- RATING FIELD STUFF --
  1468. ------------------------
  1469.  
  1470. On OPENFIELD
  1471.  
  1472.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1473.   if the optionKey is down and the commandKey is not down then
  1474.     helper helpRatMinYrs
  1475.     exit openField
  1476.   end if
  1477.  
  1478. End OPENFIELD
  1479.  
  1480. -----------------------------------
  1481. -- UCMD'S LINE 'HELPER' IN BKGND --
  1482. -----------------------------------
  1483.  
  1484.  
  1485.  
  1486.  
  1487. -- part 95 (field)
  1488. -- low flags: 02
  1489. -- high flags: 0000
  1490. -- rect: left=129 top=88 right=100 bottom=156
  1491. -- title width / last selected line: 0
  1492. -- icon id / first selected line: 0 / 0
  1493. -- text alignment: 0
  1494. -- font id: 128
  1495. -- text size: 9
  1496. -- style flags: 0
  1497. -- line height: 12
  1498. -- part name: Minutes
  1499. ----- HyperTalk script -----
  1500.  
  1501. -------------------------
  1502. -- MINUTES FIELD STUFF --
  1503. -------------------------
  1504.  
  1505. On OPENFIELD
  1506.  
  1507.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1508.   if the optionKey is down and the commandKey is not down then
  1509.     helper helpRatMinYrs
  1510.     exit OPENFIELD
  1511.   end if
  1512.  
  1513. End OPENFIELD
  1514.  
  1515. -----------------------------------
  1516. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1517. -----------------------------------
  1518.  
  1519.  
  1520.  
  1521.  
  1522. -- part 96 (field)
  1523. -- low flags: 02
  1524. -- high flags: 0000
  1525. -- rect: left=172 top=88 right=100 bottom=205
  1526. -- title width / last selected line: 0
  1527. -- icon id / first selected line: 0 / 0
  1528. -- text alignment: 0
  1529. -- font id: 128
  1530. -- text size: 9
  1531. -- style flags: 0
  1532. -- line height: 12
  1533. -- part name: Year
  1534. ----- HyperTalk script -----
  1535.  
  1536. ----------------------
  1537. -- YEAR FIELD STUFF --
  1538. ----------------------
  1539.  
  1540. On OPENFIELD
  1541.  
  1542.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1543.   if the optionKey is down and the commandKey is not down then
  1544.     helper helpRatMinYrs
  1545.     exit OPENFIELD
  1546.   end if
  1547.  
  1548. End OPENFIELD
  1549.  
  1550. -----------------------------------
  1551. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1552. -----------------------------------
  1553.  
  1554.  
  1555.  
  1556.  
  1557. -- part 97 (field)
  1558. -- low flags: 00
  1559. -- high flags: 0000
  1560. -- rect: left=24 top=108 right=175 bottom=288
  1561. -- title width / last selected line: 0
  1562. -- icon id / first selected line: 0 / 0
  1563. -- text alignment: 0
  1564. -- font id: 2
  1565. -- text size: 10
  1566. -- style flags: 0
  1567. -- line height: 13
  1568. -- part name: Description
  1569. ----- HyperTalk script -----
  1570.  
  1571. -----------------------------
  1572. -- DESCRIPTION FIELD STUFF --
  1573. -----------------------------
  1574.  
  1575. On OPENFIELD
  1576.  
  1577.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1578.   if the optionKey is down and the commandKey is not down then
  1579.     helper helpDes
  1580.     exit OPENFIELD
  1581.   end if
  1582.  
  1583. End OPENFIELD
  1584.  
  1585. -----------------------------------
  1586. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1587. -----------------------------------
  1588.  
  1589.  
  1590.  
  1591.  
  1592. -- part 113 (field)
  1593. -- low flags: 01
  1594. -- high flags: 0000
  1595. -- rect: left=248 top=277 right=289 bottom=305
  1596. -- title width / last selected line: 0
  1597. -- icon id / first selected line: 0 / 0
  1598. -- text alignment: 1
  1599. -- font id: 221
  1600. -- text size: 9
  1601. -- style flags: 0
  1602. -- line height: 9
  1603. -- part name: Date
  1604.  
  1605.  
  1606. -- part 132 (button)
  1607. -- low flags: 00
  1608. -- high flags: 4000
  1609. -- rect: left=347 top=44 right=58 bottom=480
  1610. -- title width / last selected line: 0
  1611. -- icon id / first selected line: 0 / 0
  1612. -- text alignment: 1
  1613. -- font id: 0
  1614. -- text size: 12
  1615. -- style flags: 0
  1616. -- line height: 16
  1617. -- part name: 
  1618. ----- HyperTalk script -----
  1619.  
  1620. -- INDEX BTNS:
  1621.  
  1622. On MOUSEUP
  1623.  
  1624.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1625.   if the optionKey is down and the commandKey is not down then
  1626.     helper helpIndexItems
  1627.     exit mouseUp
  1628.   end if
  1629.  
  1630.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  1631.   reHiLite the number of me
  1632.  
  1633.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  1634.   finDing the number of me - 4
  1635.  
  1636.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  1637.  
  1638. End MOUSEUP
  1639.  
  1640. -----------------------------------
  1641. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1642. -----------------------------------
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648. -- part 133 (button)
  1649. -- low flags: 00
  1650. -- high flags: 0000
  1651. -- rect: left=347 top=63 right=77 bottom=480
  1652. -- title width / last selected line: 0
  1653. -- icon id / first selected line: 0 / 0
  1654. -- text alignment: 1
  1655. -- font id: 0
  1656. -- text size: 12
  1657. -- style flags: 0
  1658. -- line height: 16
  1659. -- part name: 
  1660. ----- HyperTalk script -----
  1661.  
  1662. -- INDEX BTNS:
  1663.  
  1664. On MOUSEUP
  1665.  
  1666.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1667.   if the optionKey is down and the commandKey is not down then
  1668.     helper helpIndexItems
  1669.     exit mouseUp
  1670.   end if
  1671.  
  1672.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  1673.   reHiLite the number of me
  1674.  
  1675.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  1676.   finDing the number of me - 4
  1677.  
  1678.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  1679.  
  1680. End MOUSEUP
  1681.  
  1682. -----------------------------------
  1683. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1684. -----------------------------------
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690. -- part 134 (button)
  1691. -- low flags: 00
  1692. -- high flags: 0000
  1693. -- rect: left=347 top=82 right=96 bottom=480
  1694. -- title width / last selected line: 0
  1695. -- icon id / first selected line: 0 / 0
  1696. -- text alignment: 1
  1697. -- font id: 0
  1698. -- text size: 12
  1699. -- style flags: 0
  1700. -- line height: 16
  1701. -- part name: 
  1702. ----- HyperTalk script -----
  1703.  
  1704. -- INDEX BTNS:
  1705.  
  1706. On MOUSEUP
  1707.  
  1708.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1709.   if the optionKey is down and the commandKey is not down then
  1710.     helper helpIndexItems
  1711.     exit mouseUp
  1712.   end if
  1713.  
  1714.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  1715.   reHiLite the number of me
  1716.  
  1717.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  1718.   finDing the number of me - 4
  1719.  
  1720.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  1721.  
  1722. End MOUSEUP
  1723.  
  1724. -----------------------------------
  1725. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1726. -----------------------------------
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732. -- part 135 (button)
  1733. -- low flags: 00
  1734. -- high flags: 0000
  1735. -- rect: left=347 top=101 right=115 bottom=480
  1736. -- title width / last selected line: 0
  1737. -- icon id / first selected line: 0 / 0
  1738. -- text alignment: 1
  1739. -- font id: 0
  1740. -- text size: 12
  1741. -- style flags: 0
  1742. -- line height: 16
  1743. -- part name: 
  1744. ----- HyperTalk script -----
  1745.  
  1746. -- INDEX BTNS:
  1747.  
  1748. On MOUSEUP
  1749.  
  1750.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1751.   if the optionKey is down and the commandKey is not down then
  1752.     helper helpIndexItems
  1753.     exit mouseUp
  1754.   end if
  1755.  
  1756.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  1757.   reHiLite the number of me
  1758.  
  1759.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  1760.   finDing the number of me - 4
  1761.  
  1762.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  1763.  
  1764. End MOUSEUP
  1765.  
  1766. -----------------------------------
  1767. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1768. -----------------------------------
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774. -- part 136 (button)
  1775. -- low flags: 00
  1776. -- high flags: 0000
  1777. -- rect: left=347 top=120 right=134 bottom=480
  1778. -- title width / last selected line: 0
  1779. -- icon id / first selected line: 0 / 0
  1780. -- text alignment: 1
  1781. -- font id: 0
  1782. -- text size: 12
  1783. -- style flags: 0
  1784. -- line height: 16
  1785. -- part name: 
  1786. ----- HyperTalk script -----
  1787.  
  1788. -- INDEX BTNS:
  1789.  
  1790. On MOUSEUP
  1791.  
  1792.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1793.   if the optionKey is down and the commandKey is not down then
  1794.     helper helpIndexItems
  1795.     exit mouseUp
  1796.   end if
  1797.  
  1798.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  1799.   reHiLite the number of me
  1800.  
  1801.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  1802.   finDing the number of me - 4
  1803.  
  1804.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  1805.  
  1806. End MOUSEUP
  1807.  
  1808. -----------------------------------
  1809. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1810. -----------------------------------
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816. -- part 137 (button)
  1817. -- low flags: 00
  1818. -- high flags: 0000
  1819. -- rect: left=347 top=139 right=153 bottom=480
  1820. -- title width / last selected line: 0
  1821. -- icon id / first selected line: 0 / 0
  1822. -- text alignment: 1
  1823. -- font id: 0
  1824. -- text size: 12
  1825. -- style flags: 0
  1826. -- line height: 16
  1827. -- part name: 
  1828. ----- HyperTalk script -----
  1829.  
  1830. -- INDEX BTNS:
  1831.  
  1832. On MOUSEUP
  1833.  
  1834.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1835.   if the optionKey is down and the commandKey is not down then
  1836.     helper helpIndexItems
  1837.     exit mouseUp
  1838.   end if
  1839.  
  1840.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  1841.   reHiLite the number of me
  1842.  
  1843.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  1844.   finDing the number of me - 4
  1845.  
  1846.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  1847.  
  1848. End MOUSEUP
  1849.  
  1850. -----------------------------------
  1851. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1852. -----------------------------------
  1853.  
  1854.  
  1855.  
  1856.  
  1857.  
  1858. -- part 138 (button)
  1859. -- low flags: 00
  1860. -- high flags: 0000
  1861. -- rect: left=347 top=158 right=172 bottom=480
  1862. -- title width / last selected line: 0
  1863. -- icon id / first selected line: 0 / 0
  1864. -- text alignment: 1
  1865. -- font id: 0
  1866. -- text size: 12
  1867. -- style flags: 0
  1868. -- line height: 16
  1869. -- part name: 
  1870. ----- HyperTalk script -----
  1871.  
  1872. -- INDEX BTNS:
  1873.  
  1874. On MOUSEUP
  1875.  
  1876.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1877.   if the optionKey is down and the commandKey is not down then
  1878.     helper helpIndexItems
  1879.     exit mouseUp
  1880.   end if
  1881.  
  1882.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  1883.   reHiLite the number of me
  1884.  
  1885.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  1886.   finDing the number of me - 4
  1887.  
  1888.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  1889.  
  1890. End MOUSEUP
  1891.  
  1892. -----------------------------------
  1893. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1894. -----------------------------------
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900. -- part 139 (button)
  1901. -- low flags: 00
  1902. -- high flags: 0000
  1903. -- rect: left=347 top=177 right=191 bottom=480
  1904. -- title width / last selected line: 0
  1905. -- icon id / first selected line: 0 / 0
  1906. -- text alignment: 1
  1907. -- font id: 0
  1908. -- text size: 12
  1909. -- style flags: 0
  1910. -- line height: 16
  1911. -- part name: 
  1912. ----- HyperTalk script -----
  1913. -- INDEX BTNS:
  1914.  
  1915. On MOUSEUP
  1916.  
  1917.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1918.   if the optionKey is down and the commandKey is not down then
  1919.     helper helpIndexItems
  1920.     exit mouseUp
  1921.   end if
  1922.  
  1923.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  1924.   reHiLite the number of me
  1925.  
  1926.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  1927.   finDing the number of me - 4
  1928.  
  1929.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  1930.  
  1931. End MOUSEUP
  1932.  
  1933. -----------------------------------
  1934. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1935. -----------------------------------
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941. -- part 140 (button)
  1942. -- low flags: 00
  1943. -- high flags: 0000
  1944. -- rect: left=347 top=196 right=210 bottom=480
  1945. -- title width / last selected line: 0
  1946. -- icon id / first selected line: 0 / 0
  1947. -- text alignment: 1
  1948. -- font id: 0
  1949. -- text size: 12
  1950. -- style flags: 0
  1951. -- line height: 16
  1952. -- part name: 
  1953. ----- HyperTalk script -----
  1954.  
  1955. -- INDEX BTNS:
  1956.  
  1957. On MOUSEUP
  1958.  
  1959.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  1960.   if the optionKey is down and the commandKey is not down then
  1961.     helper helpIndexItems
  1962.     exit mouseUp
  1963.   end if
  1964.  
  1965.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  1966.   reHiLite the number of me
  1967.  
  1968.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  1969.   finDing the number of me - 4
  1970.  
  1971.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  1972.  
  1973. End MOUSEUP
  1974.  
  1975. -----------------------------------
  1976. -- UCMD'S LIKE 'HELPER' IN BKGND --
  1977. -----------------------------------
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983. -- part 141 (button)
  1984. -- low flags: 00
  1985. -- high flags: 0000
  1986. -- rect: left=347 top=215 right=229 bottom=480
  1987. -- title width / last selected line: 0
  1988. -- icon id / first selected line: 0 / 0
  1989. -- text alignment: 1
  1990. -- font id: 0
  1991. -- text size: 12
  1992. -- style flags: 0
  1993. -- line height: 16
  1994. -- part name: 
  1995. ----- HyperTalk script -----
  1996.  
  1997. -- INDEX BTNS:
  1998.  
  1999. On MOUSEUP
  2000.  
  2001.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2002.   if the optionKey is down and the commandKey is not down then
  2003.     helper helpIndexItems
  2004.     exit mouseUp
  2005.   end if
  2006.  
  2007.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  2008.   reHiLite the number of me
  2009.  
  2010.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  2011.   finDing the number of me - 4
  2012.  
  2013.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  2014.  
  2015. End MOUSEUP
  2016.  
  2017. -----------------------------------
  2018. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2019. -----------------------------------
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025. -- part 142 (button)
  2026. -- low flags: 00
  2027. -- high flags: 0000
  2028. -- rect: left=347 top=234 right=248 bottom=480
  2029. -- title width / last selected line: 0
  2030. -- icon id / first selected line: 0 / 0
  2031. -- text alignment: 1
  2032. -- font id: 0
  2033. -- text size: 12
  2034. -- style flags: 0
  2035. -- line height: 16
  2036. -- part name: 
  2037. ----- HyperTalk script -----
  2038.  
  2039. -- INDEX BTNS:
  2040.  
  2041. On MOUSEUP
  2042.  
  2043.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2044.   if the optionKey is down and the commandKey is not down then
  2045.     helper helpIndexItems
  2046.     exit mouseUp
  2047.   end if
  2048.  
  2049.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  2050.   reHiLite the number of me
  2051.  
  2052.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  2053.   finDing the number of me - 4
  2054.  
  2055.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  2056.  
  2057. End MOUSEUP
  2058.  
  2059. -----------------------------------
  2060. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2061. -----------------------------------
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067. -- part 143 (button)
  2068. -- low flags: 00
  2069. -- high flags: 0000
  2070. -- rect: left=347 top=253 right=267 bottom=480
  2071. -- title width / last selected line: 0
  2072. -- icon id / first selected line: 0 / 0
  2073. -- text alignment: 1
  2074. -- font id: 0
  2075. -- text size: 12
  2076. -- style flags: 0
  2077. -- line height: 16
  2078. -- part name: 
  2079. ----- HyperTalk script -----
  2080.  
  2081. -- INDEX BTNS:
  2082.  
  2083. On MOUSEUP
  2084.  
  2085.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2086.   if the optionKey is down and the commandKey is not down then
  2087.     helper helpIndexItems
  2088.     exit mouseUp
  2089.   end if
  2090.  
  2091.   -- CALLING ON THE HILITE/DEHILITE UCMD:
  2092.   reHiLite the number of me
  2093.  
  2094.   -- INVOKING A CUSTOM COMMAND THAT HAS ONE PARAMETER:
  2095.   finDing the number of me - 4
  2096.  
  2097.   -- THESE USER-DEFINED COMMNANDS (UCMD) ARE IN THE STACK SCRIPT!
  2098.  
  2099. End MOUSEUP
  2100.  
  2101. -----------------------------------
  2102. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2103. -----------------------------------
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109. -- part 144 (button)
  2110. -- low flags: 80
  2111. -- high flags: 2000
  2112. -- rect: left=176 top=234 right=250 bottom=311
  2113. -- title width / last selected line: 0
  2114. -- icon id / first selected line: 0 / 0
  2115. -- text alignment: 1
  2116. -- font id: 0
  2117. -- text size: 12
  2118. -- style flags: 0
  2119. -- line height: 16
  2120. -- part name: Hidden
  2121. ----- HyperTalk script -----
  2122. on mouseUp
  2123.   global findTitle,hiButton
  2124.   put line (number of me - 4) of field "Window" into findTitle
  2125.   set lockscreen to true
  2126.   find findTitle in field "Title"
  2127.   set hilite of bkgnd btn hiButton to true
  2128.   set lockscreen to false
  2129. end mouseUp
  2130.  
  2131.  
  2132.  
  2133. -- part 149 (button)
  2134. -- low flags: 00
  2135. -- high flags: 2000
  2136. -- rect: left=12 top=309 right=322 bottom=42
  2137. -- title width / last selected line: 0
  2138. -- icon id / first selected line: 0 / 0
  2139. -- text alignment: 1
  2140. -- font id: 0
  2141. -- text size: 12
  2142. -- style flags: 0
  2143. -- line height: 16
  2144. -- part name: Home
  2145. ----- HyperTalk script -----
  2146.  
  2147. -----------------------
  2148. -- HOME BUTTON STUFF --
  2149. -----------------------
  2150.  
  2151. On MOUSEUP
  2152.  
  2153.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2154.   if the optionKey is down and the commandKey is not down then
  2155.     helper helpHome
  2156.     exit mouseUp
  2157.   end if
  2158.  
  2159.   --DECLARE GLOBALS:
  2160.   global InstallBtn
  2161.  
  2162.   -- CHECK TO SEE IF VS BUTTON SHOULD BE INSTALLED:
  2163.   if the shiftkey is down or InstallBtn ‚↠1 then
  2164.     answer "Install VideoStak buttons on Home Card?" with "No" or "Yes" or "Cancel"
  2165.     if IT = "Cancel" then exit mouseUp
  2166.     if IT = "No" then
  2167.       set cursor to 4
  2168.       visual dissolve fast
  2169.       go Home
  2170.     end if
  2171.  
  2172.     -- THESE GUYS INSTALL A VS BUTTON ON THE HOME CARD:
  2173.     if IT = "Yes" then
  2174.       set cursor to 4
  2175.       put "This is a delicate operation. Takes several seconds."
  2176.       put 1 into InstallBtn
  2177.       put the short name of this stack into nuBtnName
  2178.       lock screen
  2179.       set visible of bkgnd btn id 159 to true
  2180.       set cursor to 4
  2181.       set userLevel to 5
  2182.       set the name of bkgnd btn id 159 to nuBtnName
  2183.       set cursor to 4
  2184.       choose button tool
  2185.       click at loc of bkgnd btn id 159
  2186.       domenu "Copy Button"
  2187.       set visible of bkgnd btn id 159 to false
  2188.       unlock screen
  2189.       set cursor to 4
  2190.       go home
  2191.       domenu "Paste Button"
  2192.       choose browse tool
  2193.       exit mouseUp
  2194.     end if
  2195.   else
  2196.  
  2197.     -- HERE'S WHAT HAPPENS IF YOU JUST WANTED HOME:
  2198.     set cursor to 4
  2199.     go home
  2200.  
  2201.   end if
  2202.  
  2203. End MOUSEUP
  2204.  
  2205. -----------------------------------
  2206. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2207. -----------------------------------
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213. -- part 150 (button)
  2214. -- low flags: 00
  2215. -- high flags: 2000
  2216. -- rect: left=47 top=309 right=322 bottom=76
  2217. -- title width / last selected line: 0
  2218. -- icon id / first selected line: 0 / 0
  2219. -- text alignment: 1
  2220. -- font id: 0
  2221. -- text size: 12
  2222. -- style flags: 0
  2223. -- line height: 16
  2224. -- part name: First
  2225. ----- HyperTalk script -----
  2226.  
  2227. ----------------------------
  2228. -- SHOW SORT BUTTON STUFF --
  2229. ----------------------------
  2230.  
  2231. On MOUSEUP
  2232.  
  2233.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2234.   if the optionKey is down and the commandKey is not down then
  2235.     helper helpSort
  2236.     exit mouseUp
  2237.   end if
  2238.  
  2239.   global sortBy,selectAgain
  2240.  
  2241.   -- SHOW THE SORT STUFF:
  2242.   lock screen
  2243.   show bkgnd field "Sort"
  2244.   show bkgnd btn "Sort"
  2245.   show bkgnd btn "Cancel"
  2246.   unlock screen with visual dissolve fast
  2247.  
  2248.   -- THIS SELECTS THE TITLE (DEFAULT) SORTBY OPTION:
  2249.   select char 2 to 8 of line 1 of bg fld "sort"
  2250.   put the selectedText into sortBy
  2251.   put the selectedChunk into selectAgain
  2252.   exit mouseUp
  2253.  
  2254. End MOUSEUP
  2255.  
  2256. -----------------------------------
  2257. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2258. -----------------------------------
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264. -- part 151 (button)
  2265. -- low flags: 00
  2266. -- high flags: 2000
  2267. -- rect: left=81 top=309 right=322 bottom=111
  2268. -- title width / last selected line: 0
  2269. -- icon id / first selected line: 0 / 0
  2270. -- text alignment: 1
  2271. -- font id: 0
  2272. -- text size: 12
  2273. -- style flags: 0
  2274. -- line height: 16
  2275. -- part name: Prev
  2276. ----- HyperTalk script -----
  2277.  
  2278. -----------------------
  2279. -- PREV BUTTON STUFF --
  2280. -----------------------
  2281.  
  2282. On MOUSESTILLDOWN
  2283.  
  2284.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2285.   if the optionKey is down and the commandKey is not down then
  2286.     helper helpRLArrow
  2287.     exit mouseStillDown
  2288.   end if
  2289.  
  2290.   global getOutaHere -- TELLS HC TO IGNORE MOUSEUP
  2291.  
  2292.   if the commandKey is down or the shiftKey is down then
  2293.     go card 3
  2294.     exit to HyperCard
  2295.   else
  2296.     put 1 into getOutaHere
  2297.     if the number of this card = 3 then go to last card
  2298.     else
  2299.       go prev
  2300.     end if
  2301.   end if
  2302.  
  2303. End MOUSESTILLDOWN
  2304.  
  2305.  
  2306. On MOUSEUP
  2307.  
  2308.   -- GET HELP IF OPTIONKEY IS DOWN:
  2309.   if the optionKey is down and the commandKey is not down then
  2310.     helper helpRLArrow
  2311.     exit mouseUp
  2312.   end if
  2313.  
  2314.   global getOutaHere
  2315.  
  2316.   -- IF MOUSESTILL DOWN WAS RUNNING GET OUT:
  2317.   if getOutaHere = 1 then
  2318.     put empty into getOutaHere
  2319.     exit mouseUp
  2320.   end if
  2321.  
  2322.   -- GOES TO FIRST DATA CARD:
  2323.   if the commandKey is down or the shiftKey is down then
  2324.     go card 3
  2325.     exit mouseUp
  2326.   end if
  2327.  
  2328.   -- GOES TO LAST CARD IF THIS IS FIRST DATA CARD:
  2329.   if the number of this card = 3 then
  2330.     go last
  2331.     exit mouseUp
  2332.   end if
  2333.  
  2334.   -- NORMAL PREV WITH SCREEN LOCKED FOR PAINLESS UPDATE OF DATA:
  2335.   go prev
  2336.  
  2337. End MOUSEUP
  2338.  
  2339. -----------------------------------
  2340. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2341. -----------------------------------
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347. -- part 152 (button)
  2348. -- low flags: 00
  2349. -- high flags: 2000
  2350. -- rect: left=114 top=309 right=322 bottom=145
  2351. -- title width / last selected line: 0
  2352. -- icon id / first selected line: 0 / 0
  2353. -- text alignment: 1
  2354. -- font id: 0
  2355. -- text size: 12
  2356. -- style flags: 0
  2357. -- line height: 16
  2358. -- part name: Next
  2359. ----- HyperTalk script -----
  2360.  
  2361. ------------------------------------------
  2362. -- NEXT BUTTON STUFF. SEE MORE COMMENTS --
  2363. -- IN PREV BUTTON (TO YOUR LEFT)        --
  2364. ------------------------------------------
  2365.  
  2366. On MOUSESTILLDOWN
  2367.  
  2368.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2369.   if the optionKey is down and the commandKey is not down then
  2370.     helper helpRLArrow
  2371.     exit mouseStillDown
  2372.   end if
  2373.  
  2374.   -- TAKES YOU TO THE LAST CARD:
  2375.   if the commandKey is down or the shiftKey is down then
  2376.     go to card the number of cards
  2377.     exit to HyperCard
  2378.   end if
  2379.  
  2380.   -- ONE CARD AT A TIME & GET OUT WARNING
  2381.   -- FOR THE MOUSEUP HANDLER
  2382.   global getOutaHere
  2383.   put "1" into getOutaHere
  2384.   if the number of this card = the number of cards then
  2385.     go to card 3  -- SKIPS CARD 1 & 2
  2386.   else
  2387.     go next
  2388.   end if
  2389.  
  2390. End MOUSESTILLDOWN
  2391.  
  2392.  
  2393. On MOUSEUP
  2394.  
  2395.   -- GET HELP IF OPTIONKEY IS DOWN:
  2396.   if the optionKey is down and the commandKey is not down then
  2397.     helper helpRLArrow
  2398.     exit mouseUp
  2399.   end if
  2400.  
  2401.   -- IF MOUSESTILLDOWN WAS USED THEN GET OUT:
  2402.   global getOutaHere
  2403.   if getOutaHere = 1 then
  2404.     put empty into getOutaHere
  2405.     exit mouseUp
  2406.   end if
  2407.  
  2408.   -- THE LAST CARD COMMAND:
  2409.   if the commandKey is down or the shiftKey is down then
  2410.     go last
  2411.     exit mouseUp
  2412.   end if
  2413.  
  2414.   -- IF ON THE LAST CARD, DON'T GO TO CARD 1 OR 2:
  2415.   if the number of this card = the number of cards then
  2416.     go card 3
  2417.     exit mouseUp
  2418.   end if
  2419.  
  2420.   -- UNDER ORDINARY CIRCUMSTANCES:
  2421.   go next
  2422.  
  2423. End MOUSEUP
  2424.  
  2425. -----------------------------------
  2426. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2427. -----------------------------------
  2428.  
  2429.  
  2430.  
  2431.  
  2432.  
  2433. -- part 153 (button)
  2434. -- low flags: 00
  2435. -- high flags: 0000
  2436. -- rect: left=181 top=309 right=322 bottom=205
  2437. -- title width / last selected line: 0
  2438. -- icon id / first selected line: 1413 / 1413
  2439. -- text alignment: 1
  2440. -- font id: 204
  2441. -- text size: 9
  2442. -- style flags: 0
  2443. -- line height: 9
  2444. -- part name: Edit ON
  2445. ----- HyperTalk script -----
  2446.  
  2447. -------------------------------------
  2448. -- LOCK BUTTON STUFF (EDIT BUTTON) --
  2449. -------------------------------------
  2450.  
  2451. On MOUSEUP
  2452.  
  2453.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2454.   if the optionKey is down and the commandKey is not down then
  2455.     helper helpLock
  2456.     exit mouseUp
  2457.   end if
  2458.  
  2459.   -- GLOBALS, BASICS & QUICK EXIT:
  2460.   global firstTitle,firstStar,firstDirector
  2461.   play harpsichord
  2462.   get short name of me
  2463.  
  2464.   -- UNLOCK MODE:
  2465.   if IT is "Edit ON" then
  2466.     lock screen
  2467.     set the icon of me to 13262
  2468.     unlock screen
  2469.     if the shiftKey is down then show Menubar
  2470.     set name of me to "Edit OFF"
  2471.     set powerKeys to false
  2472.     set userlevel to 5
  2473.     exit mouseUp
  2474.   end if
  2475.  
  2476.   -- LOCK MODE:
  2477.   if IT is "Edit OFF" then
  2478.     lock screen
  2479.     set the icon of me to 1413
  2480.     unlock screen
  2481.     if the shiftKey is down then hide Menubar
  2482.     set name of me to "Edit ON"
  2483.     set powerKeys to true
  2484.     set userlevel to 1
  2485.     exit mouseUp
  2486.   end if
  2487.  
  2488. End MOUSEUP
  2489.  
  2490. -----------------------------------
  2491. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2492. -----------------------------------
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498. -- part 154 (button)
  2499. -- low flags: 00
  2500. -- high flags: 2000
  2501. -- rect: left=13 top=279 right=286 bottom=64
  2502. -- title width / last selected line: 0
  2503. -- icon id / first selected line: 0 / 0
  2504. -- text alignment: 1
  2505. -- font id: 0
  2506. -- text size: 12
  2507. -- style flags: 0
  2508. -- line height: 16
  2509. -- part name: Label
  2510. ----- HyperTalk script -----
  2511.  
  2512. ------------------------
  2513. -- LABEL BUTTON STUFF --
  2514. ------------------------
  2515.  
  2516. On MOUSEUP
  2517.  
  2518.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2519.   if the optionKey is down and the commandKey is not down then
  2520.     helper helpLabelBtn
  2521.     exit mouseUp
  2522.   end if
  2523.  
  2524.   -- BASICS:
  2525.   global labelMaster
  2526.   set cursor to 4
  2527.  
  2528.   -- CLEAR THE LABEL OUT WITH COMMANDKEY/SHIFTKEY:
  2529.   if the commandKey is down or the shiftKey is down then
  2530.     lock screen
  2531.     put empty into field "Label"
  2532.     put empty into labelMaster
  2533.     unlock screen with visual dissolve fast
  2534.     exit mouseUp
  2535.   end if
  2536.  
  2537.   -- PUT THE NEW LABEL IN WITH THE OLD ONES
  2538.   lock screen
  2539.   put line 1 of fld "Title" into tempTitle
  2540.   if last char of tempTitle = return then delete last char of tempTitle
  2541.   put tempTitle & "--" & field "Minutes" && "min." & return into temp
  2542.   put temp before labelMaster
  2543.   put line 1 to 3 of labelMaster into field "Label"
  2544.   put field "Label" into labelMaster
  2545.   unlock screen with visual dissolve fast
  2546.  
  2547. End MOUSEUP
  2548.  
  2549. -----------------------------------
  2550. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2551. -----------------------------------
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557. -- part 155 (button)
  2558. -- low flags: 00
  2559. -- high flags: 2000
  2560. -- rect: left=238 top=309 right=322 bottom=269
  2561. -- title width / last selected line: 0
  2562. -- icon id / first selected line: 0 / 0
  2563. -- text alignment: 1
  2564. -- font id: 0
  2565. -- text size: 12
  2566. -- style flags: 0
  2567. -- line height: 16
  2568. -- part name: Game
  2569. ----- HyperTalk script -----
  2570.  
  2571. -----------------------
  2572. -- GAME BUTTON STUFF --
  2573. -----------------------
  2574.  
  2575. On MOUSEUP
  2576.  
  2577.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2578.   if the optionKey is down and the commandKey is not down then
  2579.     helper helpGame
  2580.     exit mouseUp
  2581.   end if
  2582.  
  2583.   global lastNo
  2584.  
  2585.   -- PICKING CATEGORY:
  2586.   answer "Choose a category: Stars or Directors." with "Stars" or "Directors" or "Cancel"
  2587.  
  2588.   -- STAR LOOP:
  2589.   if IT is "Stars" then
  2590.     set cursor to 4
  2591.  
  2592.     -- MAY NEED TO KEEP CHOOSING RANDOM CARD:
  2593.     repeat
  2594.  
  2595.       -- RANDOM CARD CHOOSEN AND DATA EXTRACTED:
  2596.       repeat
  2597.         put random(the number of cards) into cardNo
  2598.         if cardNo > 2 and cardNo ‚↠lastNo then exit repeat
  2599.       end repeat
  2600.  
  2601.       -- DON'T WANT SAME CARD TWICE!
  2602.       put cardNo into LastNo
  2603.       set lockscreen to true
  2604.       push card
  2605.       go to card cardNo
  2606.  
  2607.       -- TOO MANY STAR TREK ADVENTURES:
  2608.       put field "Title" into tempTitle
  2609.       if tempTitle contains "Star Trek" then
  2610.         pop card
  2611.         unlock screen
  2612.         next repeat
  2613.       end if
  2614.  
  2615.       -- FILTER OUT EXTRANEOUS DATA:
  2616.       if last char of tempTitle = return then delete last char of temptitle
  2617.  
  2618.       -- IF BLANK OR RETURN ONLY, GET OUT:
  2619.       put field "Star" into tempStar
  2620.       if tempStar = empty or tempstar = return then
  2621.         pop card
  2622.         unlock screen
  2623.         next repeat
  2624.       end if
  2625.  
  2626.       -- ASSUMING DATA'S THERE, DELETE RETURN:
  2627.       if last char of tempStar = return then delete last char of tempStar
  2628.  
  2629.       -- $64,000 QUESTION:
  2630.       pop card
  2631.       unlock screen
  2632.       repeat  -- KEEPS ASKING IF YOU'RE WRONG!
  2633.  
  2634.         ask "Who starred in" && tempTitle & "?"
  2635.         go to this card  -- FORCES SCREEN REFRESH!
  2636.         push card  -- GOTTA KNOW WHERE TO COME BACK!
  2637.  
  2638.         -- IF YOU GIVE UP THIS HAPPENS:
  2639.         if IT is empty then
  2640.           lock screen
  2641.           go to card cardNo
  2642.           find whole tempStar in field "Star"
  2643.           unlock screen with visual dissolve fast
  2644.           select the foundChunk
  2645.           hide msg
  2646.           exit mouseUp
  2647.         end if
  2648.  
  2649.         -- ANY ANSWER AT ALL GETS THIS:
  2650.         put "Checking with our judges..."
  2651.         put IT into findAnswer
  2652.  
  2653.         -- NOW FOR A THOROUGH COMPARISON OF
  2654.         -- YOUR GUESS AND THE FIELD CONTENTS:
  2655.         if tempStar contains findAnswer then
  2656.           lock screen
  2657.           go to card cardNo
  2658.           put the number of items in fld "Star" into noItems
  2659.           repeat with i = 1 to noItems
  2660.             put item i of fld "Star" into foundAnswer
  2661.             if last char of foundAnswer = return then delete last char of foundAnswer
  2662.             if first char of foundAnswer = space then delete first char of foundAnswer
  2663.  
  2664.             -- IF IT PASSES THE MUSTER, CALAMITY ENSUES:
  2665.             if findAnswer = foundAnswer then
  2666.               put "You've gotten it right!!!"
  2667.               play PWee
  2668.               find whole foundAnswer in fld "Star"
  2669.               unlock screen with visual dissolve fast
  2670.               hide msg
  2671.               select the foundChunk
  2672.               hide msg
  2673.               exit mouseUp
  2674.             end if
  2675.  
  2676.           end repeat
  2677.  
  2678.           -- FOR AN ALMOST RIGHT ANSWER:
  2679.           put "Sor-r-ry..."
  2680.           wait for 20 ticks
  2681.           pop card
  2682.           unlock screen
  2683.           hide msg
  2684.           next repeat
  2685.  
  2686.         end if
  2687.  
  2688.         -- FOR A COMPLETELY WRONG ANSWER:
  2689.         -- (WASN'T EVEN CONTAINED IN FLD!)
  2690.         put "Sor-r-ry..."
  2691.         wait for 20 ticks
  2692.         pop card
  2693.         unlock screen
  2694.         hide msg
  2695.         next repeat
  2696.  
  2697.       end repeat
  2698.  
  2699.     end repeat
  2700.  
  2701.   end if
  2702.  
  2703.  
  2704.   -- DIRECTORS SAME AS STAR LOOP:
  2705.   -- (SEE ABOVE COMMENTARY)
  2706.   if IT is "Directors" then
  2707.     set cursor to 4
  2708.  
  2709.     repeat
  2710.  
  2711.       repeat
  2712.         put random(the number of cards) into cardNo
  2713.         if cardNo > 2 and cardNo ‚↠lastNo then exit repeat
  2714.       end repeat
  2715.  
  2716.       put cardNo into LastNo
  2717.       set lockscreen to true
  2718.       push card
  2719.       go to card cardNo
  2720.  
  2721.       put field "Title" into tempTitle
  2722.       if tempTitle contains "Star Trek" then
  2723.         pop card
  2724.         unlock screen
  2725.         next repeat
  2726.       end if
  2727.       if last char of tempTitle = return then delete last char of temptitle
  2728.  
  2729.       put field "Director" into tempDirector
  2730.       if tempDirector = empty or tempDirector = return then
  2731.         pop card
  2732.         unlock screen
  2733.         next repeat
  2734.       end if
  2735.       if last char of tempDirector = return then delete last char of tempDirector
  2736.  
  2737.       pop card
  2738.       unlock screen
  2739.  
  2740.       repeat
  2741.  
  2742.         ask "Who directed" && tempTitle & "?"
  2743.         go to this card
  2744.         push card
  2745.  
  2746.  
  2747.         if IT is empty then
  2748.           lock screen
  2749.           go to card cardNo
  2750.           find whole tempDirector in field "Director"
  2751.           unlock screen with visual dissolve fast
  2752.           select the foundChunk
  2753.           exit mouseUp
  2754.         end if
  2755.  
  2756.         put "Checking with our judges..."
  2757.         wait 1 secs
  2758.  
  2759.         put IT into findAnswer
  2760.  
  2761.         if tempDirector contains findAnswer then
  2762.           lock screen
  2763.           go to card cardNo
  2764.           put the number of items in fld "Director" into noItems
  2765.           repeat with i = 1 to noItems
  2766.             put item i of fld "Director" into foundAnswer
  2767.             if last char of foundAnswer = return then delete last char of foundAnswer
  2768.             if first char of foundAnswer = space then delete first char of foundAnswer
  2769.             if findAnswer = foundAnswer then
  2770.               put "You've gotten it right!!!"
  2771.               play PWee
  2772.               find whole foundAnswer in fld "Director"
  2773.               unlock screen with visual dissolve fast
  2774.               hide msg
  2775.               select the foundChunk
  2776.               hide msg
  2777.               exit mouseUp
  2778.             end if
  2779.           end repeat
  2780.           put "Sor-r-ry..."
  2781.           wait for 20 ticks
  2782.           pop card
  2783.           unlock screen
  2784.           hide msg
  2785.           next repeat
  2786.  
  2787.         end if
  2788.  
  2789.         put "Sor-r-ry..."
  2790.         wait for 20 ticks
  2791.         pop card
  2792.         unlock screen
  2793.         hide msg
  2794.         hide msg
  2795.         next repeat
  2796.  
  2797.       end repeat
  2798.  
  2799.     end repeat
  2800.  
  2801.   end if
  2802.  
  2803. End MOUSEUP
  2804.  
  2805. -----------------------------------
  2806. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2807. -----------------------------------
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813. -- part 158 (button)
  2814. -- low flags: 00
  2815. -- high flags: 2000
  2816. -- rect: left=274 top=309 right=322 bottom=303
  2817. -- title width / last selected line: 0
  2818. -- icon id / first selected line: 0 / 0
  2819. -- text alignment: 1
  2820. -- font id: 0
  2821. -- text size: 12
  2822. -- style flags: 0
  2823. -- line height: 16
  2824. -- part name: Help
  2825. ----- HyperTalk script -----
  2826. -- HELP STUFF:
  2827. -- INTRO TO THE IN-LINE HELP SYSTEM
  2828.  
  2829. On MOUSEUP
  2830.  
  2831.   -- DISSOLVE TV DATA TO WHITE:
  2832.   set cursor to 4
  2833.   lock screen
  2834.   show fld "MaskScreen"
  2835.   unlock screen with visual dissolve fast
  2836.  
  2837.   -- CHANGE CURSOR & DISPLAY HELP PICT:
  2838.   set cursor to 27902
  2839.   dispPICT "HelpIntro",0,0,24,40
  2840.  
  2841.   -- DISSOLVE BACK TO TV DATA
  2842.   get the result  -- CATCHES ERRORS
  2843.   set cursor to 4
  2844.   lock screen
  2845.   hide fld "MaskScreen"
  2846.   unlock screen with visual dissolve fast
  2847.  
  2848.   -- POST ERRORS IN MSG BOX:
  2849.   if IT contains "ot" then put IT
  2850.  
  2851. end MOUSEUP
  2852.  
  2853.  
  2854.  
  2855. -- part 159 (button)
  2856. -- low flags: 80
  2857. -- high flags: 2000
  2858. -- rect: left=29 top=23 right=67 bottom=82
  2859. -- title width / last selected line: 0
  2860. -- icon id / first selected line: 6732 / 6732
  2861. -- text alignment: 1
  2862. -- font id: 0
  2863. -- text size: 12
  2864. -- style flags: 0
  2865. -- line height: 16
  2866. -- part name: VideoStak ◊ Begin Here
  2867. ----- HyperTalk script -----
  2868. on mouseUp
  2869.   set cursor to 4
  2870.   visual dissolve fast
  2871.   go to the short name of me
  2872. end mouseUp
  2873.  
  2874.  
  2875.  
  2876. -- part 167 (field)
  2877. -- low flags: 80
  2878. -- high flags: 0002
  2879. -- rect: left=24 top=247 right=263 bottom=71
  2880. -- title width / last selected line: 0
  2881. -- icon id / first selected line: 0 / 0
  2882. -- text alignment: 0
  2883. -- font id: 3
  2884. -- text size: 12
  2885. -- style flags: 0
  2886. -- line height: 16
  2887. -- part name: Install1
  2888.  
  2889.  
  2890. -- part 168 (field)
  2891. -- low flags: 00
  2892. -- high flags: 0000
  2893. -- rect: left=96 top=181 right=193 bottom=150
  2894. -- title width / last selected line: 0
  2895. -- icon id / first selected line: 0 / 0
  2896. -- text alignment: 0
  2897. -- font id: 128
  2898. -- text size: 9
  2899. -- style flags: 0
  2900. -- line height: 10
  2901. -- part name: Record Date
  2902. ----- HyperTalk script -----
  2903.  
  2904. -----------------------
  2905. -- RECORD DATE STUFF --
  2906. -----------------------
  2907.  
  2908. On OPENFIELD
  2909.  
  2910.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  2911.   if the optionKey is down and the commandKey is not down then
  2912.     helper helpRecDate
  2913.     exit OPENFIELD
  2914.   end if
  2915.  
  2916.   global fieldIsOpen
  2917.   put "1" into fieldIsOpen
  2918.  
  2919. End OPENFIELD
  2920.  
  2921. -----------------------------------
  2922. -- UCMD'S LIKE 'HELPER' IN BKGND --
  2923. -----------------------------------
  2924.  
  2925. On CLOSEFIELD
  2926.  
  2927.   global fieldIsOpen
  2928.   put empty into fieldIsOpen
  2929.  
  2930.   if bkgnd field "Record Date" is not empty then
  2931.  
  2932.     put "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec" into MONTHES
  2933.     put bkgnd field "Record Date" into OLDATE
  2934.     put char 1 to 3 of bkgnd field "Record Date" into BEGINDATE
  2935.  
  2936.     if BEGINDATE is in MONTHES then
  2937.       repeat with i = 1 to the number of items in MONTHES
  2938.         if BEGINDATE = item i of MONTHES then
  2939.           put i & "/" into NUDATE
  2940.           get word 2 of OLDATE
  2941.           if last char of IT = "," then delete last char of IT
  2942.           put IT after NUDATE
  2943.           put "/" after NUDATE
  2944.           put char (number of chars in OLDATE - 1) of OLDATE after NUDATE
  2945.           put last char of OLDATE after NUDATE
  2946.           put NUDATE into bkgnd field "Record Date"
  2947.         end if
  2948.       end repeat
  2949.     end if
  2950.  
  2951.     if char 1 of OLDATE = 8 or char 1 of OLDATE = 9 then
  2952.       if the number of chars in OLDATE = 6 then
  2953.         put char 1 of OLDATE into YY
  2954.         put char 2 of OLDATE after YY
  2955.         put char 3 of OLDATE into MM
  2956.         put char 4 of OLDATE after MM
  2957.         put char 5 of OLDATE into DD
  2958.         put char 6 of OLDATE after DD
  2959.         put MM & "/" & DD & "/" & YY into bkgnd field "Record Date"
  2960.       end if
  2961.     end if
  2962.  
  2963.     if char 1 of OLDATE is in 1234567890 and (OLDATE contains "-" or OLDATE contains space) then
  2964.       if char 1 to 3 of word 2 of OLDATE is not in MONTHES then
  2965.         repeat with i = 1 to the number of chars in OLDATE
  2966.           if char i of OLDATE is in 1234567890 then put char i of OLDATE after NUDATE
  2967.           if (char i of OLDATE is "-" or char i of OLDATE is " ") then put "/" after NUDATE
  2968.         end repeat
  2969.         put NUDATE into bkgnd field "Record Date"
  2970.       end if
  2971.     end if
  2972.  
  2973.     if char 1 of OLDATE is in 1234567890 and char 1 to 3 of word 2 of OLDATE is in MONTHES then
  2974.       repeat with i = 1 to the number of items in MONTHES
  2975.         if char 1 to 3 of word 2 of OLDATE = item i of MONTHES then
  2976.           put i into NUDATE
  2977.         end if
  2978.       end repeat
  2979.       put "/" after NUDATE
  2980.       put word 1 of OLDATE after NUDATE
  2981.       put "/" after NUDATE
  2982.       put char (the number of chars in OLDATE - 1) of OLDATE after NUDATE
  2983.       put last char of OLDATE after NUDATE
  2984.       put NUDATE into bkgnd field "Record Date"
  2985.     end if
  2986.  
  2987.   end if
  2988.  
  2989. End CLOSEFIELD
  2990.  
  2991.  
  2992.  
  2993.  
  2994. -- part 169 (field)
  2995. -- low flags: 00
  2996. -- high flags: 0000
  2997. -- rect: left=178 top=181 right=193 bottom=238
  2998. -- title width / last selected line: 0
  2999. -- icon id / first selected line: 0 / 0
  3000. -- text alignment: 0
  3001. -- font id: 128
  3002. -- text size: 9
  3003. -- style flags: 0
  3004. -- line height: 10
  3005. -- part name: Record Time
  3006. ----- HyperTalk script -----
  3007.  
  3008. --------------------
  3009. -- RECORDING TIME --
  3010. --------------------
  3011.  
  3012. On OPENFIELD
  3013.  
  3014.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3015.   if the optionKey is down and the commandKey is not down then
  3016.     helper helpRecDate
  3017.     exit OPENFIELD
  3018.   end if
  3019.  
  3020. End OPENFIELD
  3021.  
  3022. -----------------------------------
  3023. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3024. -----------------------------------
  3025.  
  3026.  
  3027.  
  3028.  
  3029. -- part 170 (field)
  3030. -- low flags: 00
  3031. -- high flags: 0000
  3032. -- rect: left=254 top=181 right=193 bottom=288
  3033. -- title width / last selected line: 0
  3034. -- icon id / first selected line: 0 / 0
  3035. -- text alignment: 0
  3036. -- font id: 128
  3037. -- text size: 9
  3038. -- style flags: 0
  3039. -- line height: 10
  3040. -- part name: Record Channel
  3041. ----- HyperTalk script -----
  3042.  
  3043. -----------------------
  3044. -- RECORDING CHANNEL --
  3045. -----------------------
  3046.  
  3047. On OPENFIELD
  3048.  
  3049.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3050.   if the optionKey is down and the commandKey is not down then
  3051.     helper helpRecDate
  3052.     exit OPENFIELD
  3053.   end if
  3054.  
  3055. End OPENFIELD
  3056.  
  3057. -----------------------------------
  3058. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3059. -----------------------------------
  3060.  
  3061.  
  3062.  
  3063.  
  3064. -- part 171 (button)
  3065. -- low flags: 00
  3066. -- high flags: 2000
  3067. -- rect: left=150 top=309 right=322 bottom=178
  3068. -- title width / last selected line: 0
  3069. -- icon id / first selected line: 0 / 0
  3070. -- text alignment: 1
  3071. -- font id: 0
  3072. -- text size: 12
  3073. -- style flags: 0
  3074. -- line height: 16
  3075. -- part name: New
  3076. ----- HyperTalk script -----
  3077.  
  3078. ----------------------
  3079. -- NEW BUTTON STUFF --
  3080. ----------------------
  3081.  
  3082. On MOUSEUP
  3083.  
  3084.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3085.   if the optionKey is down and the commandKey is not down then
  3086.     helper helpNew
  3087.     exit mouseUp
  3088.   end if
  3089.  
  3090.   --GLOBALS:
  3091.   global tempUL,tempPK,tempEdit,nuCard
  3092.  
  3093.   -- BASIC RECORDING OF LEVELS AND SET-UP:
  3094.   set cursor to 4
  3095.   if the short name of bg btn id 153 = "Edit ON" then send mouseUp to bg btn id 153
  3096.   put 1 into nuCard
  3097.   -- LETS OPENCARD HANDLER KNOW IT'S A NEW CARD!
  3098.  
  3099.   set lockscreen to true
  3100.   domenu "New Card"
  3101.  
  3102.   -- FILL IN THE CLASS FIELDS & SORT FIELD
  3103.   -- WITH APPROPRIATE DATA:
  3104.   repeat with i = 2 to 15
  3105.     put "Œ© " & the short name of field i into field i
  3106.   end repeat
  3107.   put "  TITLE " & return into line 1 of field "Sort"
  3108.   put "  STAR " & return into line 2 of field "Sort"
  3109.   put "  DIRECTOR " & return into line 3 of field "Sort"
  3110.   put "  RATING " & return into line 4 of field "Sort"
  3111.   put "  MINUTES " & return into line 5 of field "Sort"
  3112.   put "  YEAR " & return into line 6 of field "Sort"
  3113.   put "  COLOR " & return into line 7 of field "Sort"
  3114.   put "  OWN " & return into line 8 of field "Sort"
  3115.   put "  RECORD DATE " & return into line 9 of field "Sort"
  3116.  
  3117.   -- GET BLINKING CURSOR IN FIRST FIELD:
  3118.   put 0 into nuCard
  3119.   unlock screen with visual dissolve fast
  3120.   type tab
  3121.  
  3122. End MOUSEUP
  3123.  
  3124. -----------------------------------
  3125. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3126. -----------------------------------
  3127.  
  3128.  
  3129.  
  3130.  
  3131.  
  3132. -- part 172 (button)
  3133. -- low flags: 00
  3134. -- high flags: 2000
  3135. -- rect: left=13 top=287 right=300 bottom=64
  3136. -- title width / last selected line: 0
  3137. -- icon id / first selected line: 0 / 0
  3138. -- text alignment: 1
  3139. -- font id: 0
  3140. -- text size: 12
  3141. -- style flags: 0
  3142. -- line height: 16
  3143. -- part name: Print
  3144. ----- HyperTalk script -----
  3145.  
  3146. -----------------------
  3147. -- PRINT LABEL STUFF --
  3148. -----------------------
  3149.  
  3150. On MOUSEUP
  3151.  
  3152.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3153.   if the optionKey is down and the commandKey is not down then
  3154.     helper helpPrint
  3155.     exit mouseUp
  3156.   end if
  3157.  
  3158.   -- DECLARE GLOBALS:
  3159.   global labelMaster,window,printBackTo
  3160.  
  3161.   -- CHECK FOR NO DATA:
  3162.   if fld "label" is empty then
  3163.     answer "VCR tape label is empty--click Label Button."
  3164.     exit mouseUp
  3165.   end if
  3166.  
  3167.   -- CHECK FOR COLD FEET:
  3168.   answer "Sure you want to print this label?" with "No" or "Yes"
  3169.   if IT is "No" then exit mouseUp
  3170.  
  3171.   -- GO TO THE PRINT UTIL STACK & PRINT:
  3172.   set cursor to 4
  3173.   put the name of this stack into printBackTo
  3174.   go to stack "VideoStak ‚óä Don't Open 1"
  3175.   put labelmaster & return into card field "Label"
  3176.   domenu "Print Report..."
  3177.  
  3178.   -- THEN COME BACK:
  3179.   set cursor to 4
  3180.   put empty into card field "Label"
  3181.   visual dissolve fast
  3182.   go to printBackTo
  3183.  
  3184. End MOUSEUP
  3185.  
  3186. -----------------------------------
  3187. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3188. -----------------------------------
  3189.  
  3190.  
  3191.  
  3192.  
  3193. -- part 173 (button)
  3194. -- low flags: 00
  3195. -- high flags: 2000
  3196. -- rect: left=251 top=279 right=300 bottom=302
  3197. -- title width / last selected line: 0
  3198. -- icon id / first selected line: 0 / 0
  3199. -- text alignment: 1
  3200. -- font id: 0
  3201. -- text size: 12
  3202. -- style flags: 0
  3203. -- line height: 16
  3204. -- part name: Alarm
  3205. ----- HyperTalk script -----
  3206.  
  3207. ---------------------------------------
  3208. -- ALARM/CURRENT DATE BUTTON'S STUFF --
  3209. ---------------------------------------
  3210.  
  3211. On MOUSEUP
  3212.  
  3213.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3214.   if the optionKey is down and the commandKey is not down then
  3215.     helper helpAlarm
  3216.     exit mouseUp
  3217.   end if
  3218.  
  3219.   -- LOOKS FOR TODAY'S DATE:
  3220.   set cursor to 4
  3221.   lock screen
  3222.   find whole the short date in fld "Record Date"
  3223.   if the result is not empty then
  3224.     unlock screen
  3225.     put "Found nothing for today. Try sorting by record date."
  3226.     exit mouseUp
  3227.   end if
  3228.   unlock screen with visual dissolve fast
  3229.   select the foundChunk
  3230.  
  3231. End MOUSEUP
  3232.  
  3233. -----------------------------------
  3234. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3235. -----------------------------------
  3236.  
  3237.  
  3238.  
  3239.  
  3240. -- part 175 (field)
  3241. -- low flags: 01
  3242. -- high flags: 0000
  3243. -- rect: left=89 top=278 right=301 bottom=226
  3244. -- title width / last selected line: 0
  3245. -- icon id / first selected line: 0 / 0
  3246. -- text alignment: 0
  3247. -- font id: 3
  3248. -- text size: 7
  3249. -- style flags: 0
  3250. -- line height: 7
  3251. -- part name: Label
  3252.  
  3253.  
  3254. -- part 176 (button)
  3255. -- low flags: 00
  3256. -- high flags: 4000
  3257. -- rect: left=344 top=278 right=285 bottom=368
  3258. -- title width / last selected line: 0
  3259. -- icon id / first selected line: 0 / 0
  3260. -- text alignment: 1
  3261. -- font id: 221
  3262. -- text size: 9
  3263. -- style flags: 0
  3264. -- line height: 12
  3265. -- part name: titleMaster
  3266. ----- HyperTalk script -----
  3267.  
  3268. -----------------
  3269. -- TITLE STUFF --
  3270. -----------------
  3271.  
  3272. On MOUSEUP
  3273.  
  3274.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3275.   if the optionKey is down and the commandKey is not down then
  3276.     helper helpIndexTabs
  3277.     exit mouseUp
  3278.   end if
  3279.  
  3280.   global hiButton,titleMaster,master,lineNo
  3281.  
  3282.   -- MOVER TITLES INTO THE CENTRAL INDEX:
  3283.   put titleMaster into master
  3284.  
  3285.   -- REAFFIRM THE HILITING OF INDEX TABS:
  3286.   put number of me into hiButton
  3287.   repeat with i = 30 to 33
  3288.     set hilite of bkgnd btn i to i = number of me
  3289.   end repeat
  3290.  
  3291.   -- NOW UPDATE THE ACTUAL INDEX WINDOW:
  3292.   lock screen
  3293.   put line 1 to 12 of master into field "window"
  3294.   put 1 into lineNo
  3295.   unlock screen with visual dissolve fast
  3296.  
  3297. End MOUSEUP
  3298.  
  3299. -----------------------------------
  3300. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3301. -----------------------------------
  3302.  
  3303.  
  3304.  
  3305.  
  3306.  
  3307. -- part 177 (button)
  3308. -- low flags: 00
  3309. -- high flags: 0000
  3310. -- rect: left=376 top=275 right=282 bottom=400
  3311. -- title width / last selected line: 0
  3312. -- icon id / first selected line: 0 / 0
  3313. -- text alignment: 1
  3314. -- font id: 221
  3315. -- text size: 9
  3316. -- style flags: 0
  3317. -- line height: 12
  3318. -- part name: starMaster
  3319. ----- HyperTalk script -----
  3320.  
  3321. ---------------------------------
  3322. -- STAR STUFF LINE TITLE STUFF --
  3323. -- SEE TITLE INDEX TAB BUTTON  --
  3324. ---------------------------------
  3325.  
  3326. On MOUSEUP
  3327.  
  3328.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3329.   if the optionKey is down and the commandKey is not down then
  3330.     helper helpIndexTabs
  3331.     exit mouseUp
  3332.   end if
  3333.  
  3334.   global hiButton,starMaster,master,lineNo
  3335.   put starMaster into master
  3336.   put number of me into hiButton
  3337.   repeat with i = 30 to 33
  3338.     set hilite of bkgnd btn i to i = number of me
  3339.   end repeat
  3340.   lock screen
  3341.   put line 1 to 12 of master into field "window"
  3342.   put 1 into lineNo
  3343.   unlock screen with visual dissolve fast
  3344.  
  3345. End MOUSEUP
  3346.  
  3347. -----------------------------------
  3348. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3349. -----------------------------------
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355. -- part 178 (button)
  3356. -- low flags: 00
  3357. -- high flags: 0000
  3358. -- rect: left=408 top=272 right=279 bottom=439
  3359. -- title width / last selected line: 0
  3360. -- icon id / first selected line: 0 / 0
  3361. -- text alignment: 1
  3362. -- font id: 221
  3363. -- text size: 9
  3364. -- style flags: 0
  3365. -- line height: 12
  3366. -- part name: directorMaster
  3367. ----- HyperTalk script -----
  3368.  
  3369. -------------------------------------
  3370. -- DIRECTOR STUFF LINE TITLE STUFF --
  3371. -- SEE TITLE INDEX TAB BUTTON      --
  3372. -------------------------------------
  3373.  
  3374. On MOUSEUP
  3375.  
  3376.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3377.   if the optionKey is down and the commandKey is not down then
  3378.     helper helpIndexTabs
  3379.     exit mouseUp
  3380.   end if
  3381.  
  3382.   global hiButton,directorMaster,master,lineNo
  3383.   put directorMaster into master
  3384.   put number of me into hiButton
  3385.   repeat with i = 30 to 33
  3386.     set hilite of bkgnd btn i to i = number of me
  3387.   end repeat
  3388.   lock screen
  3389.   put line 1 to 12 of master into field "window"
  3390.   put 1 into lineNo
  3391.   unlock screen with visual dissolve fast
  3392.  
  3393. End MOUSEUP
  3394.  
  3395. -----------------------------------
  3396. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3397. -----------------------------------
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403. -- part 179 (button)
  3404. -- low flags: 00
  3405. -- high flags: 0000
  3406. -- rect: left=447 top=269 right=276 bottom=477
  3407. -- title width / last selected line: 0
  3408. -- icon id / first selected line: 0 / 0
  3409. -- text alignment: 1
  3410. -- font id: 221
  3411. -- text size: 9
  3412. -- style flags: 0
  3413. -- line height: 12
  3414. -- part name: classMaster
  3415. ----- HyperTalk script -----
  3416.  
  3417. ----------------------------------
  3418. -- CLASS STUFF LINE TITLE STUFF --
  3419. -- SEE TITLE INDEX TAB BUTTON   --
  3420. ----------------------------------
  3421.  
  3422. On MOUSEUP
  3423.  
  3424.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3425.   if the optionKey is down and the commandKey is not down then
  3426.     helper helpIndexTabs
  3427.     exit mouseUp
  3428.   end if
  3429.  
  3430.   global hiButton,ClassMaster,master,lineNo
  3431.   put ClassMaster into master
  3432.   put number of me into hiButton
  3433.   repeat with i = 30 to 33
  3434.     set hilite of bkgnd btn i to i = number of me
  3435.   end repeat
  3436.   lock screen
  3437.   put line 1 to 12 of master into field "window"
  3438.   put 1 into lineNo
  3439.   unlock screen with visual dissolve fast
  3440.  
  3441. End MOUSEUP
  3442.  
  3443. -----------------------------------
  3444. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3445. -----------------------------------
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451. -- part 180 (field)
  3452. -- low flags: 81
  3453. -- high flags: 2004
  3454. -- rect: left=87 top=90 right=183 bottom=224
  3455. -- title width / last selected line: 0
  3456. -- icon id / first selected line: 0 / 0
  3457. -- text alignment: 0
  3458. -- font id: 221
  3459. -- text size: 9
  3460. -- style flags: 0
  3461. -- line height: 9
  3462. -- part name: Sort
  3463. ----- HyperTalk script -----
  3464. On MOUSEUP
  3465.  
  3466.   -- BASICS
  3467.   global sortBy,selectAgain
  3468.   put the short name of me into FName
  3469.   put ((item 2 of the clickloc - item 2 of the rect of me) div the textheight of me) +1 into LNum
  3470.   if LNum > 9 then exit mouseUp
  3471.   put the number of chars in line LNum of me into NChars
  3472.  
  3473.   -- SELECT TEXT IN MAIN FIELD
  3474.   select char 2 to NChars of line LNum of field FName
  3475.  
  3476.   -- FILTER THE SELECTION & PUT INTO GLOBAL VAR
  3477.   put selection into sortBy
  3478.   put the selectedChunk into selectAgain
  3479.  
  3480. End MOUSEUP
  3481.  
  3482.  
  3483.  
  3484.  
  3485.  
  3486. -- part 181 (button)
  3487. -- low flags: 80
  3488. -- high flags: 2002
  3489. -- rect: left=176 top=99 right=131 bottom=212
  3490. -- title width / last selected line: 0
  3491. -- icon id / first selected line: 20186 / 20186
  3492. -- text alignment: 1
  3493. -- font id: 223
  3494. -- text size: 9
  3495. -- style flags: 0
  3496. -- line height: 9
  3497. -- part name: Sort
  3498. ----- HyperTalk script -----
  3499. on mouseUp
  3500.  
  3501.   -- BASICS
  3502.   global sortby,selectAgain
  3503.   if sortBy is empty then
  3504.     answer "Click on an item to sort by."
  3505.     exit mouseUp
  3506.   end if
  3507.   select selectAgain
  3508.   set cursor to 4
  3509.   delete char 1 of sortBy
  3510.   delete last char of sortby
  3511.  
  3512.   -- DETERMINE SORT ORDER AND THEN SORT
  3513.   if sortBy = "Minutes" or sortBy = "Year" then
  3514.     lock screen
  3515.     sort ascending numeric by field sortBy
  3516.     go card 3
  3517.     put empty into sortby
  3518.     hide bg btn "Cancel"
  3519.     hide bkgnd btn "Sort"
  3520.     hide field "Sort"
  3521.     hide card pict
  3522.     unlock screen with visual dissolve fast
  3523.     exit mouseUp
  3524.   end if
  3525.   if sortBy = "Record¬†Date" then
  3526.     lock screen
  3527.     sort ascending dateTime by field sortBy
  3528.     go card 3
  3529.     put empty into sortby
  3530.     hide bg btn "Cancel"
  3531.     hide bkgnd btn "Sort"
  3532.     hide field "Sort"
  3533.     unlock screen with visual dissolve fast
  3534.     exit mouseUp
  3535.   end if
  3536.  
  3537.   lock screen
  3538.   sort ascending text by field sortBy
  3539.   go card 3
  3540.   put empty into sortby
  3541.   hide bg btn "Cancel"
  3542.   hide bkgnd btn "Sort"
  3543.   hide field "Sort"
  3544.   unlock screen with visual dissolve fast
  3545.  
  3546. end mouseUp
  3547.  
  3548.  
  3549.  
  3550.  
  3551. -- part 183 (button)
  3552. -- low flags: 80
  3553. -- high flags: 2002
  3554. -- rect: left=176 top=139 right=174 bottom=212
  3555. -- title width / last selected line: 0
  3556. -- icon id / first selected line: 99 / 99
  3557. -- text alignment: 1
  3558. -- font id: 0
  3559. -- text size: 12
  3560. -- style flags: 0
  3561. -- line height: 16
  3562. -- part name: Cancel
  3563. ----- HyperTalk script -----
  3564. on mouseUp
  3565.   lock screen
  3566.   hide the target
  3567.   hide bkgnd btn "Sort"
  3568.   hide field "Sort"
  3569.   unlock screen with visual dissolve fast
  3570. end mouseUp
  3571.  
  3572.  
  3573.  
  3574. -- part 190 (button)
  3575. -- low flags: 00
  3576. -- high flags: 2000
  3577. -- rect: left=208 top=309 right=322 bottom=233
  3578. -- title width / last selected line: 0
  3579. -- icon id / first selected line: 0 / 0
  3580. -- text alignment: 1
  3581. -- font id: 204
  3582. -- text size: 9
  3583. -- style flags: 0
  3584. -- line height: 9
  3585. -- part name: Kill
  3586. ----- HyperTalk script -----
  3587.  
  3588. -----------------------
  3589. -- KILL BUTTON STUFF --
  3590. -----------------------
  3591.  
  3592. On MOUSEUP
  3593.  
  3594.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3595.   if the optionKey is down and the commandKey is not down then
  3596.     helper helpKill
  3597.     exit mouseUp
  3598.   end if
  3599.  
  3600.   -- A CHANCE TO BAIL OUT:
  3601.   answer "Sure you want to kill this card?" with "Kill" or "Cancel"
  3602.   if IT = "Cancel" then exit mouseUp
  3603.  
  3604.   -- GLOBALS & BASICS:
  3605.   global killCard,window,labelMaster
  3606.  
  3607.   -- BASIC RECORDING OF LEVELS AND SET-UP:
  3608.   set cursor to 4
  3609.   put "1" into killCard
  3610.   put fld "Window" into window
  3611.   put fld "Label" into labelMaster
  3612.  
  3613.   -- CLEAR GET FIELDS TO RE-ADJUST INDICES:
  3614.   repeat with i = 16 to 18
  3615.     set cursor to 4
  3616.     if fld i = empty then next repeat
  3617.     lock screen
  3618.     send openField to fld i
  3619.     put empty into fld i
  3620.     unlock screen
  3621.     send closeField to fld i
  3622.   end repeat
  3623.  
  3624.   -- GRAB DATA FOR THE NEXT CARD:
  3625.   set cursor to 4
  3626.   set lockscreen to true
  3627.   put fld "Window" into Window
  3628.  
  3629.   -- KILL-L-L-L IT!
  3630.   domenu "Delete Card"
  3631.   put empty into killCard
  3632.  
  3633.   -- NOW UPDATE THE CARD LANDED ON:
  3634.   put window into fld "Window"
  3635.   if labelmaster ‚↠empty then put labelMaster into fld "Label"
  3636.   unlock screen with visual dissolve fast
  3637.  
  3638. End MOUSEUP
  3639.  
  3640. -----------------------------------
  3641. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3642. -----------------------------------
  3643.  
  3644.  
  3645.  
  3646.  
  3647.  
  3648. -- part 191 (button)
  3649. -- low flags: 00
  3650. -- high flags: 2000
  3651. -- rect: left=90 top=279 right=300 bottom=225
  3652. -- title width / last selected line: 0
  3653. -- icon id / first selected line: 0 / 0
  3654. -- text alignment: 1
  3655. -- font id: 0
  3656. -- text size: 12
  3657. -- style flags: 0
  3658. -- line height: 16
  3659. -- part name: LabelReal
  3660. ----- HyperTalk script -----
  3661.  
  3662. -----------------------
  3663. -- CLEAR LABEL STUFF --
  3664. -----------------------
  3665.  
  3666. On MOUSEUP
  3667.  
  3668.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3669.   if the optionKey is down and the commandKey is not down then
  3670.     helper helpLabelReal
  3671.     exit mouseUp
  3672.   end if
  3673.  
  3674.   -- EMPTY THE LABEL:
  3675.   global labelmaster
  3676.   lock screen
  3677.   put empty into fld "Label"
  3678.   put empty into labelmaster
  3679.   unlock screen with visual dissolve fast
  3680.  
  3681. End MOUSEUP
  3682.  
  3683. -----------------------------------
  3684. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3685. -----------------------------------
  3686.  
  3687.  
  3688.  
  3689.  
  3690. -- part 192 (button)
  3691. -- low flags: 00
  3692. -- high flags: 2000
  3693. -- rect: left=114 top=248 right=263 bottom=201
  3694. -- title width / last selected line: 0
  3695. -- icon id / first selected line: 0 / 0
  3696. -- text alignment: 1
  3697. -- font id: 0
  3698. -- text size: 12
  3699. -- style flags: 0
  3700. -- line height: 16
  3701. -- part name: Credits
  3702. ----- HyperTalk script -----
  3703.  
  3704. --------------------------
  3705. -- CREDITS BUTTON STUFF --
  3706. --------------------------
  3707.  
  3708. On MOUSEUP
  3709.  
  3710.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3711.   if the optionKey is down and the commandKey is not down then
  3712.     helper helpCredits
  3713.     exit mouseUp
  3714.   end if
  3715.  
  3716.   -- GO TO CREDITS CARD WITH LOCK:
  3717.   set cursor to 4
  3718.   lock screen
  3719.   set lockmessages to true
  3720.   push card
  3721.   go to card "Credits"
  3722.   pop card
  3723.  
  3724.   -- GO TO CREDITS CARD WITHOUT LOCK:
  3725.   push card
  3726.   go to card "Credits"
  3727.   unlock screen with visual dissolve fast
  3728.   play drawer
  3729.   set cursor to 27902 -- SPEC TV CURSOR
  3730.  
  3731.   -- HOLD THERE UNTIL CLICK:
  3732.   repeat
  3733.     if the mouse is down then
  3734.       exit repeat
  3735.     end if
  3736.   end repeat
  3737.  
  3738.   -- NOW GO BACK:
  3739.   set cursor to 4
  3740.   lock screen
  3741.   pop card
  3742.   unlock screen with visual dissolve fast
  3743.   play drawer
  3744.   set lockmessages to true
  3745.  
  3746. End MOUSEUP
  3747.  
  3748. -----------------------------------
  3749. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3750. -----------------------------------
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756. -- part 194 (button)
  3757. -- low flags: 00
  3758. -- high flags: 2000
  3759. -- rect: left=399 top=311 right=323 bottom=428
  3760. -- title width / last selected line: 0
  3761. -- icon id / first selected line: 0 / 0
  3762. -- text alignment: 1
  3763. -- font id: 0
  3764. -- text size: 12
  3765. -- style flags: 0
  3766. -- line height: 16
  3767. -- part name: indexIt
  3768. ----- HyperTalk script -----
  3769.  
  3770. --------------------------
  3771. -- INDEX THE STAK STUFF --
  3772. --------------------------
  3773.  
  3774. On MOUSEUP
  3775.  
  3776.   -- GET HELP RESOURCE, BUT NOT IF PEEKING:
  3777.   if the optionKey is down and the commandKey is not down then
  3778.     helper helpIndexStak
  3779.     exit mouseUp
  3780.   end if
  3781.  
  3782.   if the short name of this card = "Opening" or the short name of this card = "Credits" then exit mouseUp
  3783.  
  3784.   -- BIG DECISION:
  3785.   answer "Index the entire stack? (This takes a while!)" with "Index" or "Cancel"
  3786.   if IT = "Cancel" then exit mouseUp
  3787.  
  3788.   -- GET READY TO DO ENTIRE STACK:
  3789.   set cursor to 4
  3790.   lock screen
  3791.   set lockmessages to true
  3792.   push card
  3793.  
  3794.   global titleMaster,starMaster,directorMaster,hiButton,lineNo,master
  3795.   global window
  3796.  
  3797.   -- START WITH A CLEAN SLATE:
  3798.   if lineNo = empty then put 1 into lineNo
  3799.   if hiButton = empty then put 30 into lineNo
  3800.   put empty into titleMaster
  3801.   put empty into starMaster
  3802.   put empty into directorMaster
  3803.   set lockmessages to true
  3804.  
  3805.   --  GO CARD-TO-CARD:
  3806.   repeat with i = 3 to the number of cards
  3807.  
  3808.     -- GO TO FIRST CARD AND GIVE MSG REPORT:
  3809.     go to card i
  3810.     put "CARD" && i && "OF" && the number of cards
  3811.  
  3812.     -- MAKE A TITLE ENTRY INTO AN INDEX ITEM:
  3813.     if field "Title" ‚↠empty and the number of chars in field "Title" > 1 then
  3814.       put field "Title" into piTitle
  3815.       put "‚àÇ" before piTitle
  3816.       if last char of piTitle = return then
  3817.         put piTitle after titleMaster
  3818.       else
  3819.         put piTitle & return after titleMaster
  3820.       end if
  3821.     end if
  3822.  
  3823.     -- MAKE A STAR ENTRY INTO AN INDEX ITEM:
  3824.     if field "Star" ‚↠empty and the number of chars in field "Star" > 1 then
  3825.       put field "Star" into varStar
  3826.       -- THERE MAY BE MORE THAN 1 STAR:
  3827.       repeat with x = 1 to the number of items in varStar
  3828.         if char 1 of item x of varStar = space then delete char 1 of item x of varStar
  3829.         put item x of varStar into piStar
  3830.         put "‚àÇ" before piStar
  3831.         if piStar is in starMaster then
  3832.         else
  3833.           if last char of piStar = return then
  3834.             put piStar after starMaster
  3835.           else
  3836.             put piStar & return after starMaster
  3837.           end if
  3838.         end if
  3839.       end repeat
  3840.     end if
  3841.  
  3842.     -- MAKE A DIRECTOR ENTRY INTO AN INDEX ITEM:
  3843.     if field "Director" ‚↠empty and the number of chars in field "Director" > 1 then
  3844.       put field "Director" into varDirector
  3845.  
  3846.       -- THERE MAY BE MORE THAN 1 DIRECTOR:
  3847.       repeat with y = 1 to the number of items in varDirector
  3848.         if char 1 of item y of varDirector = space then delete char 1 of item y of varDirector
  3849.         put item y of varDirector into piDirector
  3850.         put "‚àÇ" before piDirector
  3851.         if piDirector is in directorMaster then
  3852.         else
  3853.           if last char of piDirector = return then
  3854.             put piDirector after directorMaster
  3855.           else
  3856.             put piDirector & return after directorMaster
  3857.           end if
  3858.         end if
  3859.       end repeat
  3860.     end if
  3861.  
  3862.   end repeat
  3863.  
  3864.   -- GO TO THE FIRST CARD AND UPDATE THE MASTER FIELDS:
  3865.   go to card "Opening"
  3866.   put "Storing the title index..."
  3867.   put sortLines(titleMaster) into card field "titleMaster"
  3868.  
  3869.   -- GET RID OF BLANK LINES FROM EXCESS RETURNS:
  3870.   repeat
  3871.     if line 1 of card field "TitleMaster" is empty then
  3872.       delete line 1 of card field "titleMaster"
  3873.     else
  3874.       exit repeat
  3875.     end if
  3876.   end repeat
  3877.   put card field "titleMaster" into titleMaster
  3878.  
  3879.   -- PUT THE NEW SORTED STARS INTO MASTER STAR FIELD:
  3880.   put "Storing the star index..."
  3881.   put sortLines(starMaster) into card field "starMaster"
  3882.  
  3883.   -- GET RID OF BLANK LINES FROM EXCESS RETURNS:
  3884.   repeat
  3885.     if line 1 of card field "starMaster" is empty then
  3886.       delete line 1 of card field "starMaster"
  3887.     else
  3888.       exit repeat
  3889.     end if
  3890.   end repeat
  3891.   put card field "starMaster" into starMaster
  3892.  
  3893.   -- PUT THE NEW SORTED STARS INTO MASTER STAR FIELD:
  3894.   put "Storing the director index..."
  3895.   put sortLines(directorMaster) into card field "directorMaster"
  3896.  
  3897.   -- GET RID OF BLANK LINES FROM EXCESS RETURNS:
  3898.   repeat
  3899.     if line 1 of card field "directorMaster" is empty then
  3900.       delete line 1 of card field "directorMaster"
  3901.     else
  3902.       exit repeat
  3903.     end if
  3904.   end repeat
  3905.   put card field "directorMaster" into directorMaster
  3906.  
  3907.   -- GO BACK & GIVE STATUS:
  3908.   pop card
  3909.   put "Just about done..."
  3910.  
  3911.   -- UPDATE THE WINDOW WITH THE APPROPRO MASTER:
  3912.   if hiButton = 30 then  -- TITLE BUTTON!
  3913.     put titlemaster into master
  3914.     put line lineNo to (lineNo + 11) of master into window
  3915.     put window into field "Window"
  3916.   end if
  3917.   if hiButton = 31 then  -- STAR BUTTON!
  3918.     put starMaster into master
  3919.     put line lineNo to (lineNo + 11) of Master into window
  3920.     put window into field "Window"
  3921.   end if
  3922.   if hiButton = 32 then  -- DIRECTOR BUTTON!
  3923.     put directorMaster into master
  3924.     put line lineNo to (lineNo + 11) of Master into window
  3925.     put window into field "Window"
  3926.   end if
  3927.  
  3928.   -- DON'T NEED TO MESS WITH THE CLASSIFICATIONS
  3929.   -- AS THEY NEVER CHANGE OR GET DELETED!
  3930.  
  3931.   -- TIDY UP:
  3932.   send mouseUp to bg btn hiButton
  3933.   unlock screen with visual dissolve fast
  3934.   set lockmessages to false
  3935.   put "All done with the indexing!"
  3936.  
  3937. End MOUSEUP
  3938.  
  3939. -----------------------------------
  3940. -- UCMD'S LIKE 'HELPER' IN BKGND --
  3941. -----------------------------------
  3942.  
  3943.  
  3944.  
  3945.  
  3946.  
  3947. -- part 204 (field)
  3948. -- low flags: 81
  3949. -- high flags: 0002
  3950. -- rect: left=22 top=38 right=239 bottom=293
  3951. -- title width / last selected line: 0
  3952. -- icon id / first selected line: 0 / 0
  3953. -- text alignment: 0
  3954. -- font id: 3
  3955. -- text size: 12
  3956. -- style flags: 0
  3957. -- line height: 16
  3958. -- part name: MaskScreen
  3959.